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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@s_dimzon , All files in /var/lib/mrtg folder are temporary. Go ahead and delete them all, it's not going to affect the system. Generally, /usr/local/nagios/share/perfdata/ is the folder where historic rrd data is stored. You may want to backup that whole folder for now.
You said you reran the following command:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
Can you upload the /tmp/mrtg.txt file again?

Also, please run the following:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
Again, please upload the /tmp/mrtg.txt file. This will give us information on the version of mrtg you're running.
Finally, you may try to delete the service in question, and rerun the switch wizard but select only that particular port. That may automatically recreate the RRD file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

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

Post by s_dimzon »

Hi @npolovenko,

i sent you a Private message.

i am wondering if I still need to setup a MRTG on the new server, Is that also a pre-requisite for this part? or is the plugin not compatible with the current version of Centos? I am using Centos 7 64bit

Are there also pre-requisite besides the documentation given?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@s_dimzon, Please navigate to:

Code: Select all

cd /var/lib/
and run:
chmod -R 777 mrtg
chmod apache,nagios mrtg
Also, please delete all files inside the /var/lib/mrtg folder.
When done, you can restart nagios with:

Code: Select all

service nagios restart
service httpd restart
service crond restart
service npcd restart
After that please allow Nagios up to 30 min to recreate new RRD's.
i am wondering if I still need to setup a MRTG on the new server, Is that also a pre-requisite for this part? or is the plugin not compatible with the current version of Centos? I am using Centos 7 64bit
Your version of mrtg is ok. And yes, the plugin should be compatible with CentOS 7.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

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

Post by s_dimzon »

Hi @npolovenko

I ran these commands:
cd /var/lib/
and run:
chmod -R 777 mrtg

but this one seems invalid, I having an error: chmod apache,nagios mrtg
"chmod: invalid mode: âapache,nagiosâ
Try 'chmod --help' for more information."

I'd try to do chown apache:nagios mrtg, restart services and waited 2 hrs but rrd was not recreated
also chown apache:apache mrtg, then restart services, still the same
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

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

Post by s_dimzon »

Hi!

I got it working!!

just for history purposes, incase anyone might encounter. I'v updated the check_mrtgtraf plugin. I used the one for Centos6
here's the link:
https://centos.pkgs.org/6/epel-x86_64/n ... 4.rpm.html

We can close this now. Thank you very much!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@s_dimzon , Thanks for letting other users know how you got this to work! I will close this thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked