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?
4 hosts have no perf data for ping
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
4 hosts have no perf data for ping
Last edited by BanditBBS on Tue Jan 29, 2013 11:07 am, edited 1 time in total.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
- Red Shirt
- Posts: 8334
- Joined: Thu Nov 15, 2012 1:20 pm
Re: 4 hosts have no perf data for ping
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
Re: 4 hosts have no perf data for ping
npcd.log has nothing for little over a month in it.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
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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
Re: 4 hosts have no perf data for ping
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.
However, I am now concerned as to why the one log has nothing since mid Dec and the other is non-existent.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: 4 hosts have no perf data for ping
Did you by chance perform an upgrade on PNP since December?
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
Re: 4 hosts have no perf data for ping
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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: 4 hosts have no perf data for ping
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.
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
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
Re: 4 hosts have no perf data for ping
Mike,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
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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github