Page 1 of 1

Nagios check fails - snmpwalk is success.

Posted: Mon Aug 20, 2018 5:05 pm
by krishnar
Hello,

I am facing an issue with setting up a Nagios check. snmpwalk is success to a device, but Nagios check fails.

Code: Select all

[user@server libexec]# snmpwalk -v2c -c xxxxxxxxxx 10.10.x.x ipRouteDest.0.0.0.0
RFC1213-MIB::ipRouteDest.0.0.0.0 = IpAddress: 0.0.0.0


[user@server libexec]# ./check_snmp -H 10.10.x.x  -C xxxxxxxxxx -o ipRouteDest.0.0.0.0  -v
/usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 1 [context] [authpriv] 10.10.x.x:161 ipRouteDest.0.0.0.0
CRITICAL - Plugin timed out while executing system call
[user@server libexec]#
I am not sure what am I missing here. Any help would be appreciated!

Re: Nagios check fails - snmpwalk is success.

Posted: Tue Aug 21, 2018 1:56 pm
by cdienger
Try specifying the version 2c protocol:

/usr/local/nagios/libexec/check_snmp -H 10.10.x.x -C xxxxxxxxxx -o ipRouteDest.0.0.0.0 -v -P 2c