Page 1 of 2
SNMP checks timing out
Posted: Fri Apr 10, 2015 7:42 pm
by OptimusB
Almost relating to this thread I created earlier.... I am getting timeouts again, but not sure why...
http://support.nagios.com/forum/viewtop ... =6&t=32175
Last time I just removed some MIBS and it worked, this time it seems it has no effect...
Check_SNMP is timing out and returning this....
(Service check timed out after 60.01 seconds)
Code: Select all
# snmpwalk -v 2c -c community server enterprises.9.9.109.1.1.1.1.6.1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.1 = Gauge32: 3
Code: Select all
# /usr/local/nagios/libexec/check_snmp -H server -P 2c -c community -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CRITICAL - Plugin timed out while executing system call
Code: Select all
//usr/bin/snmpget -Le -t 30 -r 5 -m ALL -v 2c -c netflow 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CISCO-PROCESS-MIB::cpmCPUTotal5secRev.1 = Gauge32: 6 percent
I also want to mentioned that I have network status and bandwidth being checked for this switch and those aren't giving any errors. (This was configured with the Network switch wizard)
Re: SNMP checks timing out
Posted: Mon Apr 13, 2015 2:19 am
by Box293
What is the output of:
Code: Select all
/usr/local/nagios/libexec/check_snmp -H server -P 2c -c community -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 -vvv
and
Code: Select all
/usr/bin/snmpget -Le -t 30 -r 5 -m ALL -D ALL -v 2c -c netflow 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
Re: SNMP checks timing out
Posted: Mon Apr 13, 2015 11:17 am
by OptimusB
Please find attached. SNMPGET worked but the check_snmp command did not.
Re: SNMP checks timing out
Posted: Mon Apr 13, 2015 4:38 pm
by abrist
I am a bit confused here. The output:
/usr/bin/snmpget -Le -t 30 -r 5 -m '' -v 2c [authpriv] 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CRITICAL - Plugin timed out while executing system call
Seems odd. Is this the verbose output from check_snmp or just from snmpget?
If this is the output from check_snmp, was it run with a full verbose (-vvv) flag?
Re: SNMP checks timing out
Posted: Mon Apr 13, 2015 6:00 pm
by OptimusB
The output is with -vvv... I did not get any verbose information....
For some reason snmpget just won't work, but snmpwalk and checksnmp worked. So I am just as confused as you are.
Code: Select all
[root@kdcbchngoxi01 ~]# /usr/local/nagios/libexec/check_snmp -H 10.242.0.49 -P 2c -c netflow -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 -vvv
/usr/bin/snmpget -Le -t 30 -r 5 -m '' -v 2c [authpriv] 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CRITICAL - Plugin timed out while executing system call
I have other SNMP checks and they seem to be working fine.... (again noticed the -vvv)
Code: Select all
[root@kdcbchngoxi01 ~]# /usr/local/nagios/libexec/check_snmp -H 10.62.100.89 -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -vvv /usr/bin/snmpget -Le -t 30 -r 5 -m ALL -v 2c [authpriv] 10.62.100.89:161 enterprises.789.1.6.4.7.0
NETAPP-MIB::diskFailedCount.0 = INTEGER: 0
Processing oid 1 (line 1)
oidname: NETAPP-MIB::diskFailedCount.0
response: INTEGER: 0
SNMP OK - 0 | NETAPP-MIB::diskFailedCount.0=0
Re: SNMP checks timing out
Posted: Mon Apr 13, 2015 6:26 pm
by Box293
So I'm betting it has something to do with MIBs
Here's the command that check_snmp executes:
Code: Select all
/usr/bin/snmpget -Le -t 30 -r 5 -m '' -v 2c [authpriv] 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
And here's the one I got you to execute:
Code: Select all
/usr/bin/snmpget -Le -t 30 -r 5 -m ALL -D ALL -v 2c -c netflow 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
The difference between the two:
Let's try the check_snmp command again but this time specify the -m ALL option:
Code: Select all
/usr/local/nagios/libexec/check_snmp -H server -P 2c -c community -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 -m ALL -vvv
Re: SNMP checks timing out
Posted: Tue Apr 14, 2015 11:05 am
by OptimusB
Code: Select all
]# /usr/local/nagios/libexec/check_snmp -H 10.242.0.49 -P 2c -c netflow -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 -m ALL -vvv
/usr/bin/snmpget -Le -t 30 -r 5 -m ALL -v 2c [authpriv] 10.242.0.49:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CRITICAL - Plugin timed out while executing system call
If this was an MIB issue, wouldn't running the snmpget produce errors? Keep in mind that seems like SNMP is working for other devices I have in Nagios. This is a Cisco switch and I am adding another one today. I will confirm whether this is repeatable with the other switches.
Re: SNMP checks timing out
Posted: Tue Apr 14, 2015 11:25 am
by OptimusB
I just tested this with another switch. We are using the Cisco Nexus 5548 and looks like check_snmp does not work for them either.
Code: Select all
# /usr/local/nagios/libexec/check_snmp -H 10.242.1.65 -P 2c -c netflow -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 -m ALL -vvv
/usr/bin/snmpget -Le -t 30 -r 5 -m ALL -v 2c [authpriv] 10.242.1.65:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CRITICAL - Plugin timed out while executing system call
Code: Select all
/usr/bin/snmpget -Le -t 30 -r 5 -m ALL -D ALL -v 2c -c netflow 10.242.1.65:161 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
CISCO-PROCESS-MIB::cpmCPUTotal5secRev.1 = Gauge32: 1 percent
Code: Select all
# snmpwalk -v 2c -c netflow 10.242.1.65 enterprises.9.9.109.1.1.1.1.6.1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.1 = Gauge32: 2
So snmpget and snmpwalk works, but not check_snmp. I have ran the network switch wizard running on it and it produces mrtg graphs.....
Re: SNMP checks timing out
Posted: Tue Apr 14, 2015 4:14 pm
by jdalrymple
Interesting Google find
What version of NX-OS are you on?
--edit--
I get that your problem doesn't mimic this one exactly as you can snmpget but Nagios isn't working. I'll admit I'm grasping at straws, it seems that's what I'm reduced to though.
Re: SNMP checks timing out
Posted: Tue Apr 14, 2015 5:13 pm
by OptimusB
Thanks for continuing to work on this with me. Our NX-OS is at version 5.2(1)N1(4).
I will also check to see if there are any issues with the MIBS or a particular OID.