Installation of Nagios on Fedora 15 is easy as yum install nagios nagios-plugins* php nrpe. I only found one problem: Error: Could not read object configuration data!
The webserver runs as user apache, which cannot access /etc/nagios/objects by default. Chmod or chown the directory to fix it, or add user apache to the group nagios.
You may also want to check the selinux settings, which can be restored by typing restorecon /etc/nagios
© GeekLabInfo Fedora 15: Nagios errors is a post from GeekLab.info. You are free to copy materials from GeekLab.info, but you are required to link back to http://www.geeklab.info
Thanks. I solved in 1 min what 10 hours work didn't solve.
The official Nagios documentation should contain this detail. Excellent! Thank you!
Took me hours to figure out, thanks!
Thank's a lot it works fine now ... after 2 days searching in Google...
this solution does not work on my system.
ls -l /etc/nagios
-rwxrwxrwx 1 nagios nagios 9546 Jul 15 2009 cgi.cfg*
-rwxrwxrwx 1 nagios nagios 15760 Sep 23 2009 command.cfg*
-rwxrwxrwx 1 nagios nagios 8583 Jul 15 2009 commands.cfg*
-rwxrwxrwx 1 nagios nagios 12363 Jul 15 2009 localhost.cfg*
-rwxrwxrwx 1 nagios nagios 30213 Jul 15 2009 nagios.cfg*
-rwxrwxrwx 1 nagios nagios 5329 May 3 2007 nsca.cfg*
-rwxrwxrwx 1 nagios nagios 1334 Jul 15 2009 resource.cfg*
drwxrwsrwx 2 nagios nagios 4096 Jun 18 11:15 rw/
-rwxrwxrwx 1 nagios nagios 1628 May 3 2007 send_nsca.cfg*
drwxrwxrwx 4 nagios nagios 4096 Jun 18 11:16 spool/
also i adduser apache in group nagios but the result is same.
where is my mistake??
What happens when you switch selinux to permissive mode?
setenforce 0