The default woner for the /var/nagios directory is wrong. It should belong to the nagios user. Without the /var/nagios directory belonging to the nagios user, nagios fails to write any info to disk, therefore it is useless. It still runs, but doesn't give any hint about what is wrong. I've been looking for this for a few weeks(albeit not ver hard), so it would be nice to have it fixed so nobody else runs into this. Reproducible: Always Steps to Reproduce: 1. emerge nagios 2. start nagios 3. try to view any of the web interface Actual Results: recieved the following error from the web interface: Error: Could not read host and service status information! Expected Results: not given me an error
Should the group be nagios as well? I'm just installing this now.
duallie brian # ls -lahd /var/nagios/ drwxrwxr-x 4 nagios nagios 288 May 28 09:04 /var/nagios/ I'm not sure if the permissions are correct, but I also added the apache user to the nagios group so he could read all the nagios files in /var, and I planned on removing world permissions from it. Maybe the Gentoo team just expects users to have good habits in that regard, but the program should work out of the box.
which version of nagios?
the first one I installed was 1.0beta(something), but I upgraded to 1.0 before I finally figured out what was going on, so that didn't fixit. I can test out the latest version on a clean system if you want me to.
If you could test it that'd be great. I just recently updated the builds so they should be good. I'll be doing some more heavy testing on them tomorrow as well.
I haven't had any problems with any of the newer versions
this was fixed a while back