<br><font size=2 face="sans-serif">Hi all,<br>
<br>
Well I have exhausted my google options and thought I best put this to
the mailing list.<br>
</font>
<br><font size=2 face="sans-serif">I'm running Fedora Core 3 with Apache/2.0.5
(Default RPM)...<br>
<br>
It took me a while to get the cgi's working (for those that have had problems
I had to do this to get the cgi's working with suexec and Apache 2 on Fedora)<br>
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ </font>
<br><font size=2 face="sans-serif">chcon -R -t httpd_sys_content_t /usr/local/nagios/share/</font>
<br><font size=2 face="sans-serif">After running those commands all the
cgi's run fine.<br>
<br>
I've set-up authorization on the cgi's so I can submit commands via the
web, but now I have a problem with the nagios.cmd file. <br>
<br>
I have used the FAQ's and set all permission's and have tried all sorts
of combinations.<br>
This is the error I get..</font>
<br>
<br><font size=2 face="sans-serif">Error: Could not stat() command file
'/usr/local/nagios/var/rw/nagios.cmd'!</font>
<br><font size=2 face="sans-serif">The external command file may be missing,
Nagios may not be running, and/or Nagios may not be checking external commands.
</font>
<br><font size=2 face="sans-serif">An error occurred while attempting to
commit your command for processing</font>
<br>
<br><font size=2 face="sans-serif">I'm not sure what/where to go from here
to get this working.<br>
nagios creates/removes the nagios.cmd file as you start and stop nagios.<br>
I have set all the permission's on the /usr/local/nagios/var/rw/ as instructed
in http://nagios.sourceforge.net/docs/1_0/commandfile.html and restarted
apache.<br>
<br>
Is there any logging/output/debug that I can check/run to try and figure
out why the cgi's cannot access /usr/local/nagios/var/rw/nagios.cmd<br>
</font>
<br><font size=2 face="sans-serif">Thanks in advance</font>
<br><font size=2 face="sans-serif"><br>
Regards,<br>
Adam Niedzwiedzki<br>
<br>
c: eye media (aust) pty ltd<br>
a: suite 301, 685 burke rd, camberwell, victoria, 3124, au, earth<br>
p: +61 (0)3 8080 5850<br>
f: +61 (0)3 8080 5840<br>
m: +61 (0)439 646 941<br>
w: http://www.eyemedia.com.au<br>
pgp: http://www.eyemedia.com.au/adamn.asc</font>