Dreaded "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.
Locked
pilotmc
Posts: 21
Joined: Tue May 23, 2017 3:33 pm

Dreaded "Error: Could not read object configuration data"

Post by pilotmc »

Hey all.
I'm on Debian, and started getting this error...probably after an update...so I'm assuming it's some permission error.
First off, nagios3 -v /etc/nagios3/nagios.cfg doesn't produce any errors.

The GUI partially loads. I can see the left menu bar and top bar, with the "Whoops!" error in the main content field.

logs don't show anything useful

[1495847552] Nagios 3.4.1 starting... (PID=23613)
[1495847552] Local time is Sat May 27 01:12:32 UTC 2017
[1495847552] LOG VERSION: 2.0
[1495847552] Finished daemonizing... (New PID=23614)

Any chance there another location that might provide some hints for troubleshooting this?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Dreaded "Error: Could not read object configuration data

Post by dwhitfield »

What's the output of the following:

Code: Select all

find / -name *nagios*
ls -la /etc/nagios3
?

Also, can you attach that nagios.cfg?

It would be my suggestion to do away with that over version of nagios and update to the latest. We can obviously try to help with the old version, but a lot of bugs have been fixed since then and compiling is really not that complicated: https://support.nagios.com/kb/article.php?id=96#Debian
pilotmc
Posts: 21
Joined: Tue May 23, 2017 3:33 pm

Re: Dreaded "Error: Could not read object configuration data

Post by pilotmc »

Thanks for taking the time to help.

https://pastebin.com/mZxw6Cth

Seems the aptitude repo only has the older version. I'll have to update it manuall.
pilotmc
Posts: 21
Joined: Tue May 23, 2017 3:33 pm

Re: Dreaded "Error: Could not read object configuration data

Post by pilotmc »

Sounds like it makes more sense for me to install the latest stable and migrate (hopefully just move) my config over and see how that goes.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Dreaded "Error: Could not read object configuration data

Post by dwhitfield »

The process is slightly more involved when it's repo to compiled, but here are instructions for Core migrations: https://assets.nagios.com/downloads/nag ... ading.html

Please let us know if you run into any issues!
Locked