Can't check CPU of Cisco Catalyt 4507 Switch

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
dpasacritacrown
Posts: 24
Joined: Tue Oct 13, 2015 12:57 pm

Can't check CPU of Cisco Catalyt 4507 Switch

Post 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.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post 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.
Rob Hassing
Image
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

Thanks @rhassing!

@dpasacritacrown, let us know if this helps.
Former Nagios Employee.
me.
dpasacritacrown
Posts: 24
Joined: Tue Oct 13, 2015 12:57 pm

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

Post 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!!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked