View FAQ

[ Return To FAQ Index | Search The FAQs ]

FAQ Database : Nagios : Error and Warning Messages

Title:Error: Could not read object configuration data!
FAQ ID:F0332
Submitted By:Darryl Hing 
Last Updated:03/14/2007

Description:When clicking on any of the links on the left hand side you get: Error: Could not read object configuration data! Here are some things you should check in order to resolve this error: 1. Verify configuration options using the -v command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). 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 

Solution:This can be caused by many reasons, however, in my case it was caused because the daemon wasn't running. 1) execute "ps aux | grep nagios" You should get output similar to this: nagios 3830 0.2 0.2 4668 1140 ? Ssl 11:35 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 2) If you get nothing, or it just finds grep running, start the daemon. If you installed Nagios to the default usr/local/nagios/ directory, simply start the daemon by issuing the command: "usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg" 3) Retry the page, if it works, you've solved the problem for the short term. Reboot the box and see if nagios starts up automatically, if not, you will need to resolve that issue. 

Keywords:Error Could not read object configuration data