I installed Nagios 2.x via RPM but it did not work so I unistalled it and installed 3.0 by compiling it. (Better luck that way)
Everything installed and the web pages display but after editing the .cfg files in /usr/local/nagios/etc and tried to restart Nagios to reload the config files it get this error:
Starting nagios:su: warning: cannot change directory to /var/log/nagios: No such file or directory
I have checked and there is no /var/log/nagios file or folder.
Nagios appears to restart but it doen’t show my new hosts that I added to the windows.cfg file. Only localhost is displayed.
Then I check the /usr/local/nagios/etc/nagios.cfg file and it all appears to be pointing to correct directories. So then I looked for another nagios.cfg file and there was on in /etc/nagios. This was the 2.9 config file. This is why I suspect that only the localhost is showing. I tried to copy the 3.x file to /etc/nagios overwriting the 2.9 file and restart but no luck.
I have also looked at the nagios file in /etc/init.d and it appears correct:
I also check the SYM links in rc3.d (S99nagios) and rc5.d (S99nagios) and they both point to /etc/init.d/nagios