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.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

check_cisco.pl with CISCO ASR 9010 Router

Post by phyo »

Hi all,

I used check_cisco.pl to monitor the status of Cisco ASR9010 Router, the fan status show:

Code: Select all

Fans: OK - 0 Fans are running all good | total=0 err=0
For Memory usage, the output show

Code: Select all

Memory: CRIT - Free Memory 1% Memory_total=1791MB Memory_used=1767MB | memory_total=1791MB memory_used=1767MB
When I check with Network team, they said memory usage is around 70%. Don't know what wrong.

For Temperature, the out show

Code: Select all

./check_c4510.pl -H 10.110.40.23 -C nagios -t temp -w 45 -c 55
The switch 10.110.40.23 can't report temperature via SNMP
Syntax Error! "
Please take a look.
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 »

I haven't tried this particular plugin, so I am not familiar with it but this is a syntax error. Did you check the plugin's usage? Normally, you can view it by typing in terminal:

Code: Select all

./<plugin's name> -h
or

Code: Select all

./<plugin's name> --help
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 »

Here is the help for this command. I changed the plugin name from check_cisco.pl to check_c4510.pl

Code: Select all

[root@nagios01 libexec]# ./check_c4510.pl -h
Syntax Error !
check_cisco.pl
-H = Ip/Dns Name of the Switch
-C = SNMP Community
-t = Check type
        temp - Temperature
        fan - Fan Fail
        ps - Power Supply Fail
        cpu - CPU Load
        mem - Memory
        module - Module Health
        freeint - Free eth interfaces for X days (-d)
        int - Interface Operation Stat (use with -i or -o)
-w = Warning Value
-c = Critical Value
-d = number of days that th ethernet interface hasn't change state, default is 14 (only for -t freeint)
-i = Interface Name (only for -t int)
-o = Interface OID (only for -t int)
[root@nagios01 libexec]#
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 »

Could you post the plugin, or a link to it? This way we can have you walk the oids that it is requesting, and see if they match up or are what is causing the issue. What you have to understand is that differing device models, addin cards, and ios updates can and generally do change the snmp tree so you might have to alter the plugin to find the right ones in your case.
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.
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 »

It's strange - even displaying the usage ("-h") gives you a syntax error. Can you provide us with the download link to the plugin? Have you contacted the developer?Note: you can post comments/questions on the Nagios Exchange.
Otherwise, your syntax seems correct.
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 »

lmiltchev wrote:It's strange - even displaying the usage ("-h") gives you a syntax error. Can you provide us with the download link to the plugin? Have you contacted the developer?Note: you can post comments/questions on the Nagios Exchange.
Otherwise, your syntax seems correct.
Here is the link that I download.

Code: Select all

http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Cisco-Switches-and-routers/details
I also comment in the nagios exchange. But no reply yet so far and I forgot to mention about the syntax error.
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 »

Hey phyo,

I had issues with ASR's in my environemnt as well. with the script I was using. Luckily I was able to get the authors to fix the issue. I use http://exchange.nagios.org/directory/Pl ... th/details

Here is what I monitor on one of my ASR. The hardware health service is checking fans, psu and more.
Capture.JPG
You do not have the required permissions to view the files attached to this post.
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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_cisco.pl with CISCO ASR 9010 Router

Post by slansing »

Thanks for the tips Bandit, phyo, we can continue to take a look at the plugin you provided, if you give bandit's suggestion a try and it works for you let us know.
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:I had issues with ASR's in my environemnt as well. with the script I was using. Luckily I was able to get the authors to fix the issue. I use http://exchange.nagios.org/directory/Pl ... th/details
I also test with check_nwc_health but the output is almost the same with check_cisco.pl.
Here is the output with check_nwc_health.

Code: Select all

[root@nagios01 libexec]# ./check_nwc_health --hostname 10.110.40.23 --community nagios --mode memory-usage --warning 80 --critical 90
CRITICAL - mempool processor usage is 99.11%, mempool reserved usage is 100.00%, mempool image usage is 100.00% | 'processor_usage'=99.11%;80;90 'reserved_usage'=100%;80;90 'image_usage'=100%;80;90
[root@nagios01 libexec]#
Memory usage can't be almost 100%. The network guy say, the usage is around 60%.

Anyway, thanks for your comment.
PS. what is the model of your ASR router? Mine is ASR 9010. And can you share what options you use to monitor the memory usage?
Last edited by phyo on Mon Apr 21, 2014 9:26 pm, edited 1 time in total.
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 »

Have you done an SNMP Walk to see what the data values are?
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
Locked