Page 1 of 1

Nagios 4 - Web server takes 2 min to display after restart

Posted: Fri Jan 02, 2015 9:31 am
by cbbs70a
All;
I've just upgraded my Nagios server from 3.4 to 4.0.8 (on CentOS 6) and am having an issue. When I make a config change and restart Nagios, it restarts normally and I can immediately check its status by typing "service nagios status" with it returning "nagios is running". However, the web server is displaying the dreaded "Whoops! Error: Could not read host and service status information!" for up to *two minutes* after the restart. My 3.4 installation definitely do this. I've verified the config and looked at the output using the nagios -s switch and they look normal. I'm not sure what I am missing here, but this just doesn't seem like normal behavior. Any insight at all would be greatly appreciated.
Thanks;
FSD

Re: Nagios 4 - Web server takes 2 min to display after resta

Posted: Fri Jan 02, 2015 2:32 pm
by slansing
Can you attach your nagios.cfg file from:

Code: Select all

/usr/local/nagios/etc/
(Note: The path may differ based on distribution)
What distribution are you running this on? I also noted that you said "My 3.4 installation definitely do this." Was that a typo, or are you saying that your old version of Nagios has this problem as well? Can we also get the output from:

Code: Select all

service nagios restart

Code: Select all

tail -f /usr/local/nagios/var/nagios.log
Once the web interface displays, you can cut that tail and attach the output.