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.
Switch monitoring error
Re: Switch monitoring error
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.
"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.
Re: Switch monitoring error
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)
/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)
Re: Switch monitoring error
Does the check work now with the MIB:
?
Code: Select all
IF-MIB::ifOperStatus.10106Former 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.
"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.
Re: Switch monitoring error
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)
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)
Re: Switch monitoring error
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.
"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.
Re: Switch monitoring error
Ready for now. Thanks
Though down the road I hope to integrate an Cisco ASA and a Cisco Router and lots of other things.
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
Great, let us know when you need help!