Page 1 of 1

Can't check CPU of Cisco Catalyt 4507 Switch

Posted: Fri Mar 18, 2016 4:45 pm
by dpasacritacrown
Hi everyone, I'm having a lot of trouble using nagios to check the CPU and memory of a CISCO Catalyst 4507 switch using SNMP. I've loaded up all the mibs I need, and I'm doing the following check:

$USER1$/check_snmp -H $HOSTADDRESS$ -o cpmCPUTotal1minRev -C crownit -P 2c -m CISCO-PROCESS-MIB

I was hoping to get the CPU usage, but instead all I got was this:

OUTPUT: SNMP OK - Such Instance currently exists at this OID |

Am I doing something wrong? I assume so....I just can't figure out what! :p This SNMP stuff is pretty confusing for me, I've never used it before.

Re: Can't check CPU of Cisco Catalyt 4507 Switch

Posted: Sat Mar 19, 2016 7:04 am
by rhassing
Sometimes it easier to use the OID's instead of the names when making queries to snmp.
The OID of cpmCPUTotal1minRev is 1.3.6.1.4.1.9.9.109.1.1.1.1.7

You could try to use it on de commandline like:

Code: Select all

snmpget -v2c -c <community> <IP ADDRESS OF HOST> .1.3.6.1.4.1.9.9.109.1.1.1.1.7
or

Code: Select all

snmpwalk -v2c -c <community> <IP ADDRESS OF HOST> .1.3.6.1.4.1.9.9.109.1.1.1.1.7
What I normally would do is the remove the last numbers to see where your switch/router stops answering.
As long as you use the OID numbers instead of names you have no dependency of the MIB files.

Re: Can't check CPU of Cisco Catalyt 4507 Switch

Posted: Mon Mar 21, 2016 10:11 am
by hsmith
Thanks @rhassing!

@dpasacritacrown, let us know if this helps.

Re: Can't check CPU of Cisco Catalyt 4507 Switch

Posted: Fri Mar 25, 2016 2:30 pm
by dpasacritacrown
The snmpwalk suggestion worked perfectly!!! The problem was that the oid I had was not exactly correct, I needed an extra .1, which the walk let me see. Thanks!!

Re: Can't check CPU of Cisco Catalyt 4507 Switch

Posted: Mon Mar 28, 2016 9:18 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.