./check_snmp

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
sunilkdp
Posts: 2
Joined: Mon Feb 02, 2015 5:55 am

./check_snmp

Post by sunilkdp »

Hi

Please help me on how to monitor cisco switches and routers through SNMP, I am trying to define given below command it is showing error.

./check_snmp -H X.X.X.X -P 2c -c snmp@123! -o sysUpTimeInstance

Error: External command error: Timeout: No Response from X.X.X.X:161.

Thanks and Regards,
Sunil
Mob: 8527230555.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ./check_snmp

Post by lmiltchev »

I believe instead of "-c" you need to have "-C" in order to pass the community string. The low case "-c" is for the critical threshold...

Code: Select all

./check_snmp -H X.X.X.X -P 2c -C snmp@123! -o sysUpTimeInstance
Can you run the snmpwalk against this device?

Code: Select all

snmpwalk -v2c X.X.X.X  -c snmp@123!
Is UDP port 161 open?

Code: Select all

nmap -sU X.X.X.X -p 161
Be sure to check out our Knowledgebase for helpful articles and solutions!
sunilkdp
Posts: 2
Joined: Mon Feb 02, 2015 5:55 am

Re: ./check_snmp

Post by sunilkdp »

Thank you for your help now it is working fine.
Locked