Page 1 of 2
Error: Could not read object configuration data!
Posted: Fri Apr 17, 2015 4:51 am
by rameshAGB
HI im new to Nagios.
Installed Nagios3 in Ubuntu server , as given
https://help.ubuntu.com/lts/serverguide ... figuration
After the installation, Im able to login to index page, but other link shows "Error: Could not read object configuration data!".
Test
1.Verify configuration options using the -v command-line option to check for errors.
2.Check the Nagios log file for messages relating to startup or status data errors.
both shows, configuration is fine. Any one can help one this ?
Re: Error: Could not read object configuration data!
Posted: Fri Apr 17, 2015 12:49 pm
by abrist
This is most likely a permissions issue. You need to verify that your web group (apache or www-data usually) has permissions on the nagios directory:
Code: Select all
grep nag /etc/group
ls -la /usr/local/nagios/share
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 7:12 am
by venkatklr
Hi,
Even I am getting same error. Apache is on same group. Please help!
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 1:04 pm
by lmiltchev
Have you done this:
1.Verify configuration options using the -v command-line option to check for errors.
2.Check the Nagios log file for messages relating to startup or status data errors.
Also, have you tried restarting apache2?
Is SELinux enabled?
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 1:18 pm
by venkatklr
yes SELinux is enabled.
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 1:47 pm
by abrist
Please disable selinux for testing purposes, and then try again. You may have issues with context.
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 1:54 pm
by venkatklr
Still same issue.
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 2:05 pm
by abrist
Can you post the output of:
Code: Select all
service nagios status
ps -aef | grep nagios.cfg
grep nag /etc/group
ls -la /usr/local/nagios/sbin
ls -la /usr/local/nagios/var
cat /etc/httpd/conf.d/nagios.conf
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 2:17 pm
by venkatklr
PFA...
Re: Error: Could not read object configuration data!
Posted: Tue Jun 23, 2015 3:10 pm
by lmiltchev
If you are using Ubuntu, In the "/etc/group" you should have "www-data" instead of "apache":
Code: Select all
nagios:x:1000:nagios,www-data
nagcmd:x:1001:nagios,www-data
If you are on RHEL/CentOS, you should have:
Code: Select all
nagios:x:1000:nagios,apache
nagcmd:x:1001:nagios,apache
Do you have any config errors?
Ubuntu (repo):
Code: Select all
nagios3 -v /etc/nagios3/nagios.cfg
Source Install:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
According to your screenshot, nagios is NOT running...
Try:
Code: Select all
rm -f /usr/local/nagios/var/nagios.lock
service nagios3 start
or
Check to see if nagios is running: