This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Fri Apr 10, 2015 7:42 pm
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)
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Apr 13, 2015 2:19 am
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Mon Apr 13, 2015 11:17 am
Please find attached. SNMPGET worked but the check_snmp command did not.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Mon Apr 13, 2015 4:38 pm
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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Mon Apr 13, 2015 6:00 pm
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
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Apr 13, 2015 6:26 pm
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Tue Apr 14, 2015 11:05 am
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.
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Tue Apr 14, 2015 11:25 am
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.....
jdalrymple
Skynet Drone
Posts: 2620 Joined: Wed Feb 11, 2015 1:56 pm
Post
by jdalrymple » Tue Apr 14, 2015 4:14 pm
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.
OptimusB
Posts: 146 Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:
Post
by OptimusB » Tue Apr 14, 2015 5:13 pm
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.