Error: Could not read object configuration data!

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.
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Error: Could not read object configuration data!

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

Re: Error: Could not read object configuration data!

Post 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
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Re: Error: Could not read object configuration data!

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error: Could not read object configuration data!

Post by abrist »

hmmm. Looks like cacti does not install nagios binaries to the default location.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Re: Error: Could not read object configuration data!

Post 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?
Last edited by ukzerosniper on Wed Feb 13, 2013 11:56 am, edited 1 time in total.
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Re: Error: Could not read object configuration data!

Post by ukzerosniper »

Does this help

Code: Select all

# find / -name nagios.cfg
/etc/nagios/nagios.cfg
Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Error: Could not read object configuration data!

Post by slansing »

Yes, so you will need to find the nagios bin file and verify the config file against it as showed above.
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Re: Error: Could not read object configuration data!

Post 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 :?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error: Could not read object configuration data!

Post by abrist »

Try:

Code: Select all

find / -name nagios
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ukzerosniper
Posts: 17
Joined: Wed Feb 13, 2013 9:44 am

Re: Error: Could not read object configuration data!

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