2016-08-24 08:12:20 +01:00
|
|
|
source: Extensions/SNMP-Trap-Handler.md
|
2016-03-04 17:13:03 -07:00
|
|
|
# SNMP trap handling
|
|
|
|
|
2018-08-11 23:37:45 +02:00
|
|
|
Currently, librenms only supports linkUp/linkDown (port up/down), bgpEstablished/bgpBackwardTransition (BGP Sessions Up/Down) and authenticationFailure SNMP traps.
|
|
|
|
|
|
|
|
Traps are handled via snmptrapd.
|
2016-03-04 17:13:03 -07:00
|
|
|
|
|
|
|
## Configure snmptrapd
|
|
|
|
|
|
|
|
Install snmptrapd via your package manager.
|
|
|
|
|
2018-08-11 23:37:45 +02:00
|
|
|
Modify startup options to include `-M /opt/librenms/mibs -m ALL`
|
|
|
|
|
2016-03-04 17:13:03 -07:00
|
|
|
In `/etc/snmp/snmptrapd.conf`, add something like the following:
|
|
|
|
|
|
|
|
```text
|
|
|
|
traphandle default /opt/librenms/snmptrap.php
|
|
|
|
```
|
|
|
|
|
|
|
|
Along with any necessary configuration to receive the traps from your devices (community, etc.)
|