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:
[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]#
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.
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!
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 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
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.
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.
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