check_cisco.pl with CISCO ASR 9010 Router

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by lmiltchev »

Thanks, BanditBBS!
Be sure to check out our Knowledgebase for helpful articles and solutions!
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by phyo »

BanditBBS wrote:Have you done an SNMP Walk to see what the data values are?
Here is the result of snmpwalk with mib browser.
Image
There are 3 values(.1, .6 and .7) for Memory pool and memory used. Which value should use?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by sreinhardt »

phyo are you planning on using bandits plugin now or still the one you listed before? Also are you 100% sure that the one you linked:
Is the correct one? This does not seem to have anything but interface checks and the help output is completely different.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by phyo »

sreinhardt wrote:phyo are you planning on using bandits plugin now or still the one you listed before? Also are you 100% sure that the one you linked:
Is the correct one? This does not seem to have anything but interface checks and the help output is completely different.
Sorry, I wrongly copy the link. The correct plugin link that I used is

Code: Select all

http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-Cisco-Catalyst/details
My planing is I want to monitor the status of Cisco ASR9010 router. I can use other plugin also if they can monitor the ASR9010 status. So if you know other plugin, pls let me know. I will test and use.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by BanditBBS »

That walk sure is showing 99% used on average over 1, 5 and 10 minutes so I bet one of those is what the plugins are using, so they are reporting what the device is telling them. It may not be right, but not much can be done if the snmp doesn't supply the proper information.

At this point, at my company, I'd have the network team contact Cisco with a support call complaining the snmp isn't showing the correct usage. They would then be able to answer if it is a bug or whatever. So if you have the device covered by Cisco Smartnet, I would definitely recommend that call.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by sreinhardt »

My thoughts exactly bandit. If that isn't the case, maybe you could show another snmpwalk of the same oid, and the cisco command to show current utilization from within a minute or two of each other.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by phyo »

After contacting with Cisco, finally I got the OID of ASR9010 memory used and free.

Here are the OID of ASR9010 used memory and free memory.

You can get the mapping between index and line cards CPU: snmpwalk 1.3.6.1.2.1.47.1.1.1.1.7

Base on the above snmpwalk output, you can change accordingly : 1.3.6.1.4.1.9.9.221.1.1.1.1.18.38557239.1(used meory) and 1.3.6.1.4.1.9.9.221.1.1.1.1.20.38557239.1(free memory)

In this OID, 38557239 is represent to module 0/RSP0/CPU0.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by sreinhardt »

Awesome! Did you alter the plugin you are using to reflect the proper oids, or did you need some help with that? If you did, just to clarify which plugin are you currently using, bandits or the original one? Sorry if I missed it somewhere.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by phyo »

The original plugin is check_cisco_ips.pl.

Code: Select all

http://exchange.nagios.org/directory/Plugins/Uncategorized/Software/SNMP/Cisco-IPS-SNMP-Checks/details
I create a copy of check_cisco_ips.pl and rename as check_asr_mem0.pl and change the OID accordingly. So I created 4 copies of check_cisco_ips.pl because in my project there are two ASR9010 and two RSP on each ASR9010.

Thanks.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by sreinhardt »

Awesome, glad it's working now!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked