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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cbbs70a
Posts: 11
Joined: Sat May 17, 2014 10:26 am

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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.
Locked