Page 1 of 1

Need Assist with Host Availability Reporting Issue

Posted: Fri Oct 23, 2015 11:41 pm
by mrochelle
Nagios XI Version : 5.2.0
nagprod01.cellnet.com 2.6.32-279.11.1.el6.x86_64 x86_64
CentOS release 6.3 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36

Need help with resolving a host availability reporting issue.
After a hardware problem on 10/02, I experience some nagios database corruption but the recommended recovery procedures appeared to resolve any problems. However, it was recently brought to my attention that most of the hosts were not reporting availability, or were indicated as down although they are up. The last hard status change indicated in the logs was on 10/02. I've truncated the nagios_hoststatus table which was the only table with any significant damage with no impact on the problem. Attached is a picture from the availability report from Nagios core which indicates the problem.
I need to figure out how to get the host availability reporting back to normal. Any suggestions are appreciated.
nagios_host_log_problem.JPG

Re: Need Assist with Host Availability Reporting Issue

Posted: Mon Oct 26, 2015 10:21 am
by jdalrymple
Hi mrochelle,

Can you verify that your nagios.log is indeed getting written?

Code: Select all

tail -f /usr/local/nagios/var/nagios.log
Also, what happens if you do like a week-long lookback period instead of just the last day?

The report you're looking at doesn't source it's data from the database if I'm not mistaken, but rather those logs and/or archive logs.

Re: Need Assist with Host Availability Reporting Issue

Posted: Mon Oct 26, 2015 10:31 am
by mrochelle
Yes, the log is being written to. I going to open a problem ticket for further investigation so you can close this problem out. :geek:

Re: Need Assist with Host Availability Reporting Issue

Posted: Tue Oct 27, 2015 1:40 pm
by jdalrymple
Solved in customer ticket, had to modify default setting of the following in nagios.cfg:

Code: Select all

log_initial_states=0