Page 1 of 4

Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 9:54 am
by ukzerosniper
Hi Guys,

I have a fresh install of CactiEZ running on CentOS 6.3. This came with Nagios pre installed.

Once I have logged into Nagios, and clicked a link on the left (Any Link) I get the following error.

Code: Select all

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
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.
Does anyone have any ideas on how I can resolve this issue and get started with Nagios.

Thanks guys.

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 10:31 am
by slansing
Yes, please run the config verification tool and post the results back here:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 10:46 am
by ukzerosniper
This is what I get.

Code: Select all

[root@cacti ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
-bash: /usr/local/nagios/bin/nagios: No such file or directory

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 11:39 am
by abrist
hmmm. Looks like cacti does not install nagios binaries to the default location.

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 11:53 am
by ukzerosniper
Does anyone know where they would be installed.

I could

Code: Select all

find / -name REQUIRED_FILE_NAME
to track them down. then run the command in the correct directory. The issue is, what file am i looking for?

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 11:55 am
by ukzerosniper
Does this help

Code: Select all

# find / -name nagios.cfg
/etc/nagios/nagios.cfg
Thanks

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 12:00 pm
by slansing
Yes, so you will need to find the nagios bin file and verify the config file against it as showed above.

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 12:24 pm
by ukzerosniper
Ok,

That makes sence, the only thing is, it seems i dont have a nagios bin file :0

Code: Select all

# find / -name bin
/usr/local/bin
/usr/share/locale/bin
/usr/bin
/bin
/etc/webmin/system-status/history/bin
Help :?

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 12:28 pm
by abrist
Try:

Code: Select all

find / -name nagios

Re: Error: Could not read object configuration data!

Posted: Wed Feb 13, 2013 12:57 pm
by ukzerosniper
ok. Now we may be getting somewhere

Code: Select all

# find / -name nagios
/usr/share/nagios
/usr/lib64/nagios
/usr/bin/nagios
/var/nagios
/var/log/nagios
/etc/nagios
/etc/rc.d/init.d/nagios
Does this help?