Page 1 of 1
WARNING: SNMP error: No response from remote host "x.x.x.x"
Posted: Tue Nov 15, 2016 8:04 am
by vinish098
Dear Team,
I am getting the below error in Nagios console for one of switch.
WARNING: SNMP error: No response from remote host "x.x.x.x"
I am trying to monitor the port status; When i am running command through nagios terminal,
#snmpwalk -v 2c -c 'communityname' x.x.x.x
I am getting proper output of above command but getting error in Nagios console, Please help me to fix this issue
Re: WARNING: SNMP error: No response from remote host "x.x.x
Posted: Tue Nov 15, 2016 11:51 am
by rkennedy
It sounds like the service definitions may be different than your command, could you post them for us to look at?
Also, does your community string contain any symbols or special characters? If so, you may need to place it in the resource.cfg -
https://assets.nagios.com/downloads/nag ... Macros.pdf
Re: WARNING: SNMP error: No response from remote host "x.x.x
Posted: Wed Nov 16, 2016 12:57 am
by vinish098
Thanks for the reply..
Yes, Community string contains special character. Please have a look on service command as required.
check_xi_service_ifoperstatus!communitystring!2!-v 2 -p 161
Re: WARNING: SNMP error: No response from remote host "x.x.x
Posted: Wed Nov 16, 2016 11:16 am
by rkennedy
Take a look at that document I linked then as this is probably why it's messing up, you'll want to use the resource.cfg to substitute your community string with $USER#$.
https://assets.nagios.com/downloads/nag ... Macros.pdf
Re: WARNING: SNMP error: No response from remote host "x.x.x
Posted: Thu Nov 17, 2016 12:28 am
by vinish098
I have resolved this issue by removing special character from snmp community name of Switch.
Thanks for your support.
Re: WARNING: SNMP error: No response from remote host "x.x.x
Posted: Thu Nov 17, 2016 11:10 am
by rkennedy
Awesome, no problem. It's the unfortunate part about part about passing symbols around different parts on linux.