Handling SNMP traps with Nagios
Jump to navigation
Jump to search
WARNING: Work in progress
Capture and deal with snmp traps, applicable to Debian and probably therefore Ubuntu.
1. run snmptrapd which listens on UDP port 162 on all IPv4 interfaces.
vi /etc/default/snmpd TRAPDRUN=yes :wq vi /etc/snmp/snmptrapd.conf (incomplete - see http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html)
/etc/init.d/snmpd restart ps ax | grep snmp
2. in other systems snmpd.conf put
trapsink 192.168.1.103 community proc puppetd
where IP is the address of the snmpdtrapd system and community is the comm string and puppetd is the process we want to monitor.