Error: Could not read object configuration data!
Error: Could not read object configuration data!
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 ?
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!
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Error: Could not read object configuration data!
Hi,
Even I am getting same error. Apache is on same group. Please help!
Even I am getting same error. Apache is on same group. Please help!
Re: Error: Could not read object configuration data!
Have you done this:
Is SELinux enabled?
Also, have you tried restarting apache2?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.
Is SELinux enabled?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error: Could not read object configuration data!
yes SELinux is enabled.
Re: Error: Could not read object configuration data!
Please disable selinux for testing purposes, and then try again. You may have issues with context.
Code: Select all
setenforce 0
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Error: Could not read object configuration data!
Still same issue.
Re: Error: Could not read object configuration data!
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Error: Could not read object configuration data!
PFA...
- Attachments
-
- logsofNagios.docx
- (94.49 KiB) Downloaded 519 times
Re: Error: Could not read object configuration data!
If you are using Ubuntu, In the "/etc/group" you should have "www-data" instead of "apache":
If you are on RHEL/CentOS, you should have:
Do you have any config errors?
Ubuntu (repo):
Source Install:
According to your screenshot, nagios is NOT running...
Try:
or
Check to see if nagios is running:
Code: Select all
nagios:x:1000:nagios,www-data
nagcmd:x:1001:nagios,www-data
Code: Select all
nagios:x:1000:nagios,apache
nagcmd:x:1001:nagios,apache
Ubuntu (repo):
Code: Select all
nagios3 -v /etc/nagios3/nagios.cfg
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Try:
Code: Select all
rm -f /usr/local/nagios/var/nagios.lock
service nagios3 start
Code: Select all
service nagios start
Code: Select all
ps aux | grep nagios
Be sure to check out our Knowledgebase for helpful articles and solutions!