Page 1 of 1

./check_snmp

Posted: Mon Feb 09, 2015 2:40 am
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.

Re: ./check_snmp

Posted: Mon Feb 09, 2015 1:30 pm
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

Re: ./check_snmp

Posted: Tue Feb 10, 2015 1:34 am
by sunilkdp
Thank you for your help now it is working fine.