Add devices and manage alerts in LibreNMS via its REST API

domain: librenms.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an API access token in the LibreNMS web UI at /api-access/, then send it on every request as the X-Auth-Token header against endpoints under /api/v0/.
  2. Add a device with POST /api/v0/devices, supplying at minimum hostname plus SNMP version/community (v1/v2c) or SNMPv3 credential fields; pass force_add: true to skip the default reachability/duplicate-device checks.
  3. List or filter devices with GET /api/v0/devices, using the type parameter (e.g. down, mac, hostname) combined with query= for search-style filters.
  4. List alerts with GET /api/v0/alerts (filterable by state and severity), acknowledge one with PUT /api/v0/alerts/:id, or manage alert rules via GET/POST/PUT/DELETE on /api/v0/rules.
  5. Call the bare authenticated GET /api/v0 endpoint to get a self-describing map of all routes actually available on your LibreNMS version, since routes can be added or renamed across releases.

Known gotchas

Related routes

Create and manage alerts in Opsgenie using the REST API
support.atlassian.com · 5 steps · unrated
Manage Alertmanager silences programmatically via the Alertmanager HTTP API
prometheus.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans