Switch monitoring error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Switch monitoring error

Post by fugitive »

I'm running into issues monitoring my cisco gear.

I'm attempting to just get the link status for single interface (interface 6) on cisco catalyst switch.

I receive this error in nagios:

External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: RFC1213-MIB::ifOperStatus.6

Can you point me in a direction. I seem to be spinning my wheels on this.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch monitoring error

Post by abrist »

Can you get link status on any other interface? Can you snmpwalk the device? Is the MIB/oid listed in the walk? Is snmp enabled on the cisco device?
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.
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: Switch monitoring error

Post by fugitive »

After doing this:

/usr/local/nagios/etc/objects# snmpwalk -v2c -c public 10.100.0.1 | grep "ifOperStatus*"

Found out ports are listed like this: = port 6
IF-MIB::ifOperStatus.10106 = INTEGER: up(1)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch monitoring error

Post by abrist »

Does the check work now with the MIB:

Code: Select all

IF-MIB::ifOperStatus.10106
?
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.
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: Switch monitoring error

Post by fugitive »

Works correctly with this MIB

check_command check_snmp!-C public -o ifOperStatus.10106 -r 1 -m RFC1213-MIB

Interface Gi0/6
OK 03-11-2013 15:37:04 0d 0h 41m 44s 1/3 SNMP OK - up(1)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch monitoring error

Post by abrist »

Great! Are we lock-ready or do you have any other questions pertaining to your cisco device and snmp?
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.
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: Switch monitoring error

Post by fugitive »

Ready for now. Thanks

Though down the road I hope to integrate an Cisco ASA and a Cisco Router and lots of other things.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Switch monitoring error

Post by slansing »

Great, let us know when you need help!
Locked