Whoops 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
gacoart
Posts: 2
Joined: Tue Feb 21, 2017 8:59 pm

Whoops Error: Could not read object configuration data

Post 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.
Attachments
Nagios.conf.txt
(1.99 KiB) Downloaded 215 times
cgi.cfg.txt
(13.22 KiB) Downloaded 179 times
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Whoops Error: Could not read object configuration data

Post 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
Former Nagios employee
https://www.mcapra.com/
gacoart
Posts: 2
Joined: Tue Feb 21, 2017 8:59 pm

Re: Whoops Error: Could not read object configuration data

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