Page 1 of 2
check_cisco.pl with CISCO ASR 9010 Router
Posted: Tue Apr 15, 2014 8:43 pm
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.
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Wed Apr 16, 2014 9:57 am
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:
or
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Wed Apr 16, 2014 9:39 pm
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]#
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Thu Apr 17, 2014 10:31 am
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.
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Thu Apr 17, 2014 10:34 am
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.
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Sun Apr 20, 2014 8:36 pm
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.
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Mon Apr 21, 2014 8:16 am
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
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Mon Apr 21, 2014 9:39 am
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.
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Mon Apr 21, 2014 9:09 pm
by phyo
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?
Re: check_cisco.pl with CISCO ASR 9010 Router
Posted: Mon Apr 21, 2014 9:23 pm
by BanditBBS
Have you done an SNMP Walk to see what the data values are?