Skip to content

SNMP traps

lordraw77 edited this page Nov 26, 2026 · 1 revision

SNMP traps

Monitoring — Receive the traps your devices send, read them with names, turn one into an alert.

Needs: inventory.read

Devices can tell Janus-Ops that something happened (a link went down, a login failed) with an SNMP trap. The optional receiver listens on UDP and keeps the traps of inventory hosts, matched by their source address: the host needs no SNMP capability and no credential. Anything from an unknown address is dropped and counted.

Received traps

The receiver status and the traps received, with the host, the trap by name and its values. The names of standard traps (link up and down, authentication failure…) are built in.

Turning on the receiver

  1. Set the communities you accept: JANUS_SNMP_TRAP_COMMUNITIES=public-ro,lab in deploy/.env.
  2. Start the stack with the extra file: docker compose -f deploy/compose.yaml -f deploy/compose.snmp-traps.yaml up -d.
  3. Point your devices at this server, port 162/udp, SNMP v2c, with one of the communities. SNMPv3 traps are not accepted yet.

From a trap to an alert

Creating an alert from a trap

Alert next to a trap creates a check (snmp_traps.recent) that opens a problem when that trap arrives and closes it by itself after a quiet window. You choose which traps, how long it stays a problem and the severity.

MIB files (.mib, .txt) give names to the numeric OIDs: upload your vendor's files and the traps are shown by name. Only names are kept, not the files.


← Problems · Home · Notifications →

Clone this wiki locally