Page 1 of 1
4 hosts have no perf data for ping
Posted: Mon Jan 28, 2013 3:37 pm
by BanditBBS
I have ~50 hosts in my system. All of them were configured with a ping service and also a check_host_icmp or check_host_alive. In the effort to clean things up before adding thousands of more items, I removed all the ping service checks since that was doubling up ping checks.
Here comes the problem.......After doing this I was randomly checking host graphs and noticed all but 4 hosts have any performance data for the host. Those 4 hosts are configured exactly the same as other hosts that are working, I can't seem to figure this one out on my own as there is no noticeable pattern of the 4 machines that would point to an issue.
Any hints?
Re: 4 hosts have no perf data for ping
Posted: Mon Jan 28, 2013 4:55 pm
by abrist
Any interesting clues in the perfdata logs?
Code: Select all
tail -50 /usr/local/nagios/var/npcd.log
tail -50 /usr/local/nagios/var/perfdata.log
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 9:15 am
by BanditBBS
abrist wrote:Any interesting clues in the perfdata logs?
Code: Select all
tail -50 /usr/local/nagios/var/npcd.log
tail -50 /usr/local/nagios/var/perfdata.log
npcd.log has nothing for little over a month in it.
However, this is what I got for the other:
Code: Select all
[clarkj@svwdcnagios02 ~]$ tail -50 /usr/local/nagios/var/perfdata.log
tail: cannot open `/usr/local/nagios/var/perfdata.log' for reading: No such file or directory
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 10:19 am
by BanditBBS
Under the /usr/local/nagios/share/perfdata folder, I just removed the folders referencing the 4 hosts in question. That resolved the initial issue.
However, I am now concerned as to why the one log has nothing since mid Dec and the other is non-existent.
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 10:33 am
by mguthrie
Did you by chance perform an upgrade on PNP since December?
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 10:35 am
by BanditBBS
Only upgrades I have performed have been the new XI releases, so I think I've done 2 upgrades to XI and whatever that contains.
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 10:57 am
by mguthrie
You may just want to verify the directory locations of the logs in /usr/local/nagios/etc/pnp/npcd.cfg.
Also, for the 4 hosts, lets manually verify the permissions in /usr/local/nagios/share/perfdata and make sure that Nagios can write to these files as well as execute them. You can even manually fetch data from an rrd file to verify there is data in it with the following command.
Code: Select all
rrdtool fetch /usr/local/nagios/share/perfdata/<hostname>/_HOST_.rrd AVERAGE
Re: 4 hosts have no perf data for ping
Posted: Tue Jan 29, 2013 11:07 am
by BanditBBS
mguthrie wrote:You may just want to verify the directory locations of the logs in /usr/local/nagios/etc/pnp/npcd.cfg.
Also, for the 4 hosts, lets manually verify the permissions in /usr/local/nagios/share/perfdata and make sure that Nagios can write to these files as well as execute them. You can even manually fetch data from an rrd file to verify there is data in it with the following command.
Code: Select all
rrdtool fetch /usr/local/nagios/share/perfdata/<hostname>/_HOST_.rrd AVERAGE
Mike,
The original issue has been resolved. I removed the perf data folders for the 4 hosts and let Nagios recreate.
I looked in both of the configuration filed for npcd.log and perfdata.log. Both configs are set to silent for logging, so that is why I have the other issue. I would have never messed with these configuration files though, so they had to have been written by NagiosXI. No big deal, now I know where to turn logging on if I have further issues. Consider this thread closed.