WARNING: SNMP error: No response from remote host "x.x.x.x"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

WARNING: SNMP error: No response from remote host "x.x.x.x"

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WARNING: SNMP error: No response from remote host "x.x.x

Post 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
Former Nagios Employee
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: WARNING: SNMP error: No response from remote host "x.x.x

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WARNING: SNMP error: No response from remote host "x.x.x

Post 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
Former Nagios Employee
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: WARNING: SNMP error: No response from remote host "x.x.x

Post by vinish098 »

I have resolved this issue by removing special character from snmp community name of Switch.

Thanks for your support.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: WARNING: SNMP error: No response from remote host "x.x.x

Post by rkennedy »

Awesome, no problem. It's the unfortunate part about part about passing symbols around different parts on linux.
Former Nagios Employee
Locked