Page 1 of 1

Whoops Error: Could not read object configuration data

Posted: Tue Feb 21, 2017 10:08 pm
by gacoart
Hi, im new to Nagios. I have been stuck on this screen for a while. I dont get an error running Nagios, but from the web interface i get the Whoops Error: Could not read object configuration data message.

Im following a guide from a book called Learning Nagios 4. The book uses different locations instead of the default. Any help would be greatly appreciated.

Verifying the configuration

Code: Select all

[nagios@localhost1 etc]$ /opt/nagios/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 2 services.
        Checked 1 hosts.
        Checked 0 host groups.
        Checked 0 service groups.
        Checked 3 contacts.
        Checked 2 contact groups.
        Checked 24 commands.
        Checked 3 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 1 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 3 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
Not sure what else to check. i dont see any errors in the log either. Here is Nagios.conf and cgi.cfg hopefully some one can help me out with this.

Thanks for your help.

Re: Whoops Error: Could not read object configuration data

Posted: Wed Feb 22, 2017 1:22 pm
by mcapra
Can we also see the contents of:

Code: Select all

/etc/nagios/nagios.cfg
And the output of the following command executed from the CLI of your Nagios Core machine:

Code: Select all

ls -al /etc/nagios

Re: Whoops Error: Could not read object configuration data

Posted: Wed Feb 22, 2017 5:12 pm
by gacoart
Hi, thanks for your help, we figured it out.
All we did was change Selinux to permissive rebooted the machine and it worked.

I had changed this setting before but did not reboot to test. Once i rebooted it worked fine.

Also i had an error because i was missing the Index.html fixed it with these commands
$ touch /var/www/html/index.html
$ chmod 755 /var/www/html/index.html
Thanks for your help.

:D