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.
Can't check CPU of Cisco Catalyt 4507 Switch
-
dpasacritacrown
- Posts: 24
- Joined: Tue Oct 13, 2015 12:57 pm
Re: Can't check CPU of Cisco Catalyt 4507 Switch
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:
or
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.
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.7Code: Select all
snmpwalk -v2c -c <community> <IP ADDRESS OF HOST> .1.3.6.1.4.1.9.9.109.1.1.1.1.7As long as you use the OID numbers instead of names you have no dependency of the MIB files.
Rob Hassing


Re: Can't check CPU of Cisco Catalyt 4507 Switch
Former Nagios Employee.
me.
me.
-
dpasacritacrown
- Posts: 24
- Joined: Tue Oct 13, 2015 12:57 pm
Re: Can't check CPU of Cisco Catalyt 4507 Switch
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
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!