Prerequisites
- A LibreNMS server that CloudThinker can reach over HTTPS. For a private address, follow Reaching private services.
- A LibreNMS user for CloudThinker with the global-read role, or the admin role if agents should make changes.
- The Admin role in your CloudThinker workspace. See Roles.
Setup
Create an API token
Connect in CloudThinker
Connection details
Required permissions
The token acts as the user who created it. Pick the user’s role in LibreNMS by what agents should do. See LibreNMS’s roles.Agent capabilities
Verify the connection
Example prompts
Troubleshooting
LibreNMS rejected the API token.
LibreNMS rejected the API token.
The token works, but its user cannot read LibreNMS. Give that user global read access.
The token works, but its user cannot read LibreNMS. Give that user global read access.
That address has no LibreNMS API. Check the URL and any path LibreNMS is served under.
That address has no LibreNMS API. Check the URL and any path LibreNMS is served under.
/api/v0.LibreNMS answered with a redirect. Use the exact https address you open LibreNMS at.
LibreNMS answered with a redirect. Use the exact https address you open LibreNMS at.
The LibreNMS certificate is not trusted.
The LibreNMS certificate is not trusted.
BEGIN and END lines.Could not reach LibreNMS over HTTPS. Check the URL and that the sandbox can reach it.
Could not reach LibreNMS over HTTPS. Check the URL and that the sandbox can reach it.
https:// and that your firewall lets CloudThinker reach LibreNMS. Browser access from your laptop alone is not enough.An agent says the LibreNMS write tool is off
An agent says the LibreNMS write tool is off
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Use a dedicated LibreNMS user for CloudThinker, so you can revoke its token without affecting anyone else.
- Choose a token expiration that matches your rotation schedule, and create a new token before it lapses.