ERROR: Could not stat() command file

After an outage, Nagios did not come back up cleanly. Sorted out some issues based on the previous Admin's setup on the server. I thought all was well, I saw the pretty page and clicked around. However, a short time late I noticed when I tried to resubmit a check of a service I got: ERROR MESSAGE: Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! Tailing the log I got those "(13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi'" errors. Essentially the same error and same solution, but I fixed it this time by just executing: setenforce 0 Note that upon reboot, you'll have to fix this again. But you should be able to prevent that by editing the /etc/sysconfing/selinux file and making sure: SELINUX=disabled Be aware there are some security risks with this approach, however access is very restricted to the system I configured this way. Another possible cause is incorrect file permissions. Make sure the user that the webserver runs as (eg, 'apache') has write access to the file. This can be done typically by adding 'apache' to the nagios and/or nagcmd groups.