I followed the steps in this guide: http://assets.nagios.com/downloads/nagi ... Source.pdf
(snmp was installed prior to going through the plugin installation)
Any time I use check_snmp it hangs, so first thing I did was make sure snmpget worked to the host in question:
Code: Select all
administrator@itnetmon1:/usr/local/nagios/libexec$ snmpget -t 1 -r 5 -v 2c -c tempread 172.16.5.1 iso.3.6.1.2.1.99.1.1.1.7.11
iso.3.6.1.2.1.99.1.1.1.7.11 = Timeticks: (2151662213) 249 days, 0:50:22.13
Code: Select all
administrator@itnetmon1:/usr/local/nagios/libexec$ ./check_snmp -H 172.16.5.1 -o iso.3.6.1.2.1.99.1.1.1.7.11 -C tempread -P2c
Code: Select all
administrator@itnetmon1:/usr/local/nagios/libexec$ ./check_snmp -H 172.16.5.1 -o iso.3.6.1.2.1.99.1.1.1.7.11 -C tempread -P2c -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] 172.16.5.1:161 iso.3.6.1.2.1.99.1.1.1.7.11