Page 1 of 1

Error: Could not read host and service status information!

Posted: Tue Mar 04, 2014 12:05 pm
by gearadam
After updating Nagios Core from 3.5.0 to 4.0.3, I receive the following message on many of the links on the left pane of the web portal. When I try to start the Nagios service, the interface say it started but if I check the status on it immediately afterwards, it says it's not running. So it appears that I need to know why the nagios service will not start. If I can get it to start, then maybe my web interface issues will go away. Can anyone assist? Please dumb it down as I'm very new to linux. :)

Whoops!

Error: Could not read host and service status information!

The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.

Some other things you should check in order to resolve this error include:

Check the Nagios log file for messages relating to startup or status data errors.
Always verify configuration options using the -v command-line option before starting or restarting Nagios!
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.

Re: Error: Could not read host and service status informatio

Posted: Tue Mar 04, 2014 12:28 pm
by gearadam
I'm not certain if this issue is related or not but I'm also showing these errors in the event log...

Informational Message[03-03-2014 15:12:43] Error: Module loading failed. Aborting.
Informational Message[03-03-2014 15:12:43] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
Informational Message[03-03-2014 15:12:43] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: last_command_check

Informational Message[03-03-2014 15:12:43] wproc: Registry request: name=Core Worker 1606;pid=1606
Informational Message[03-03-2014 15:12:43] wproc: Registry request: name=Core Worker 1608;pid=1608
Informational Message[03-03-2014 15:12:43] wproc: Registry request: name=Core Worker 1607;pid=1607
Informational Message[03-03-2014 15:12:43] wproc: Registry request: name=Core Worker 1609;pid=1609
Informational Message[03-03-2014 15:12:43] wproc: Successfully registered manager as @wproc with query handler
Informational Message[03-03-2014 15:12:43] nerd: Fully initialized and ready to rock!
Informational Message[03-03-2014 15:12:43] nerd: Channel opathchecks registered successfully
Informational Message[03-03-2014 15:12:43] nerd: Channel servicechecks registered successfully
Informational Message[03-03-2014 15:12:43] nerd: Channel hostchecks registered successfully
Informational Message[03-03-2014 15:12:43] qh: core query handler registered
Informational Message[03-03-2014 15:12:43] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Informational Message[03-03-2014 15:12:43] LOG VERSION: 2.0
Informational Message[03-03-2014 15:12:43] Local time is Mon Mar 03 15:12:43 EST 2014
Program Start[03-03-2014 15:12:43] Nagios 4.0.3 starting... (PID=1605)

Re: Error: Could not read host and service status informatio

Posted: Tue Mar 04, 2014 5:56 pm
by lmiltchev
You will have to reconfigure mklivestatus to work with core 4 - check the "nagios4 livestatus support" section here:

http://mathias-kettner.de/checkmk_livestatus.html