<div dir="ltr">Everyone here has been great about helping me on my previous problem - and now I have a new one.<br><br>I have read the FAQ and recreated the file and check permissions several times, but no matter what I do I can't get past:<br>
<br><div style="color: rgb(255, 0, 0);" class="errorMessage"><i>Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!</i></div>
<div style="color: rgb(255, 0, 0);" class="errorDescription"><i>The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
</i></div>
<i style="color: rgb(255, 0, 0);">An error occurred while attempting to commit your command for processing.</i><br><br>I should explain - I rebuilt nagios on a new system and then rsync'ed key config files. I was moving from 32 bit to 64 bit and wanted to recompile everything with 64 bit libraries. <br>
<br>At first I thought the rsync caused some problems. So following the FAQ - I deleted /usr/local/nagios/var/rw and recreated. <br><br>drwxrwsr-x 2 nagios nagios 4096 Sep 14 08:44 rw<br>prw-rw---- 1 nagios nagios 0 Sep 14 08:44 nagios.cmd<br>
<br><br>and both the user and group that runs nagios is nagios. I added apache to the nagios group. Bust still the error occurs. I have restarted and rebooted. I do have selinux running, but even tried "permissive" to see if that was the problem. I also ran<br>
<br>chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/<br>chcon -R -t httpd_sys_content_t /usr/local/nagios/share/<br>chcon -R -t httpd_sys_content_t /usr/local/nagios/var<br><br>and still no luck.<br><br>Help?!<br>~J~<br>
</div>