Page 1 of 2

WARNING: SNMP error: No response from remote host "IP"

Posted: Thu Nov 30, 2017 1:18 am
by s_dimzon
Hello,

I just recently Migrated our Nagios XI Server from Centos 5.5 x32 to Centos7x64
Everything seems to be working except for this, One Network device cannot check the bandwith monitoring of this port.
I am getting a WARNING: SNMP error: No response from remote host "1.2.3.4" but the Nagios XI Server can ping the Network Device.

Kindly advise
Thank you

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Thu Nov 30, 2017 12:10 pm
by npolovenko
Hello, @s_dimzon. Which SNMP community version is used by this device? Would you be able to use a different community version for testing purposes? Also, you may increase:

Code: Select all

service_check_timeout=60
to

Code: Select all

service_check_timeout=120
in /usr/local/nagios/etc/nagios.cfg.
And you may increase the timeout value in the command itself.

When done please restart Nagios with:

Code: Select all

service nagios restart 
Let us know if that helped.

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Thu Nov 30, 2017 6:48 pm
by s_dimzon
Hi @ npolovenko,

I tried to disable the Iptables and the warnings are gone, however it seems like they are not receiving any data at some point.. I attached a file for you to see. I check the old Server from time to time and it's receiving data..
Since I have migrated our Nagios to another Server and architecture, Is there any configurations that I need to change on this particular connection?

Thank you

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Fri Dec 01, 2017 1:40 pm
by npolovenko
@s_dimzon, To start please run the following command:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
After that you'll see a text file in /tmp/mrtg.txt. Please upload it here. + let us know what's the IP adress of the device you're monitoring.

Also, please follow this manual:
https://support.nagios.com/kb/article/n ... g-512.html
and this one:
https://support.nagios.com/kb/article/n ... g-511.html

Finally, you said that only one device has this kind of problems. Does that mean all other ports on the switch return the correct data, or you only monitor 1 port and it's not working?

**Log file received.

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Sat Dec 02, 2017 6:14 am
by s_dimzon
Hi npolovenko,

I am monitoring multiple network devices, I just noticed that the badwidth issue applies to all network devices that I am monitoring (just the bandwidth). I checked the path you had given me and that's not the error I am encountering. I'm having "No such instance" error

I'd like to send you the logs instead? Would that be possible?

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Mon Dec 04, 2017 1:34 pm
by npolovenko
@s_dimzon , Thank you. I saw many entries in the log file regarding RRD's created under different architecture. Your option number 1 would be to remove all RRD's related to bandwidth from /usr/local/nagios/share/perfdata/, and that will force Nagios to recreate new RRD's. Or, if the previous performance data is important to you, you may follow this tutorial to optimize old RRD's for the new system: https://support.nagios.com/kb/article.php?id=166

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Wed Dec 06, 2017 3:09 am
by s_dimzon
Hi @npolovenko,

Thank you for helping me out, yes I have already migrated all the RRD's to the current architecture. I also tried to delete some and monitor if there are any changes, unfortunately, it only created a new RRD file, I managed to copy the same permission and check for a couple of hours more, still nothing changes. I still encounter the same error

"ERROR: Cannot update /var/lib/mrtg/1.2.3.4.rrd with '1512544808:15472120313265:7832708388922' This RRD was created on another architecture"

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Wed Dec 06, 2017 1:41 pm
by npolovenko
@s_dimzon, You said you deleted some RRD's but have you deleted this particular /var/lib/mrtg/1.2.3.4.rrd?You could just rename it, or move it to a different directory for now. Let me clarify, even after you delete the RRD's that errored out you still get the same error?
You also mentioned that this problem comes up sometimes, not all the time. I think when bandwidth is very little, Nagios automatically rounds it up to 0. That could be a possible explanation to what's going on.

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Wed Dec 06, 2017 6:24 pm
by s_dimzon
Hi @npolovenko,

No, not sometimes, it happened only when I migrated it to the new server. Old server is working fine.

I also tried that but it's not creating a new file, I attached the error I am getting.

Re: WARNING: SNMP error: No response from remote host "IP"

Posted: Thu Dec 07, 2017 1:22 am
by s_dimzon
Update:

I tried to convert few rrd files under /var/lib/mrtg and re-run the command
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt

check the file and this is what I found: --base: Act on Router/Target 1.2.3.4
but I still get 0/0 in/out on Bandwidth