check_snmp hangs
Posted: Wed Nov 28, 2012 12:49 pm
Issue
Under Host Groups have the following problem the uptime on router is listed as critical, (Service Check Timed Out)
Log file has the following entry Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Uptime\nHost: RD Cisco 8818\nAddress: 192.168.xxx.xxx\nState: CRITICAL\n\nDate/Time: Wed Nov 28 12:49:00 CST 2012\n\nAdditional Info:\n\n(Service Check Timed Out)\n"
Manually running check_snmp and it hangs.
/usr/local/nagios/libexec# ./check_snmp -H 192.168.xxx.xxx -o iso.3.6.1.2.1.1.3.0 -c comname -p2c
Run ps -aux | grep snmp I get the following;
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c -c 192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0
When I manually run snmpget it will return;
snmpget -t 1 -r 5 -m ALL -v 2c -c comname 192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (406909583) 47 days, 2:18:15.83
The community name is not being passed, is this normal?
I have the proper community name listed in switch.cfg, not sure what else I can do first pass at setting up and using nagios.
Using Ubuntu 12.10 fresh install.
Under Host Groups have the following problem the uptime on router is listed as critical, (Service Check Timed Out)
Log file has the following entry Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Uptime\nHost: RD Cisco 8818\nAddress: 192.168.xxx.xxx\nState: CRITICAL\n\nDate/Time: Wed Nov 28 12:49:00 CST 2012\n\nAdditional Info:\n\n(Service Check Timed Out)\n"
Manually running check_snmp and it hangs.
/usr/local/nagios/libexec# ./check_snmp -H 192.168.xxx.xxx -o iso.3.6.1.2.1.1.3.0 -c comname -p2c
Run ps -aux | grep snmp I get the following;
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c -c 192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0
When I manually run snmpget it will return;
snmpget -t 1 -r 5 -m ALL -v 2c -c comname 192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (406909583) 47 days, 2:18:15.83
The community name is not being passed, is this normal?
I have the proper community name listed in switch.cfg, not sure what else I can do first pass at setting up and using nagios.
Using Ubuntu 12.10 fresh install.