Page 1 of 1

Dreaded "Error: Could not read object configuration data"

Posted: Fri May 26, 2017 8:25 pm
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?

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

Posted: Sat May 27, 2017 12:05 pm
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

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

Posted: Tue May 30, 2017 12:38 am
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.

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

Posted: Tue May 30, 2017 1:41 pm
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.

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

Posted: Tue May 30, 2017 1:52 pm
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!