Page 2 of 2

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

Posted: Thu Dec 07, 2017 12:18 pm
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.

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

Posted: Fri Dec 08, 2017 3:43 am
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?

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

Posted: Fri Dec 08, 2017 1:47 pm
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.

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

Posted: Wed Dec 13, 2017 1:51 am
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

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

Posted: Wed Dec 13, 2017 2:51 am
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!

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

Posted: Wed Dec 13, 2017 11:36 am
by npolovenko
@s_dimzon , Thanks for letting other users know how you got this to work! I will close this thread.