<br><font size=2 face="sans-serif">Does anyone know what this is and how
I get around it?<br>
</font>
<br><font size=2 face="sans-serif">Dec 28 15:03:10 em-au-10 kernel: audit(1104206590.662:0):
avc: denied { getattr } for pid=6121 exe=/usr/local/nagios/sbin/cmd.cgi
path=/usr/local/nagios/var/rw/nagios.cmd dev=dm-0 ino=21910 scontext=root:system_r:httpd_sys_script_t
tcontext=root:object_r:usr_t tclass=fifo_file<br>
<br>
This is from my messages log when I try and use the external command stuff
from the webserver cmd.cgi.</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>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Andreas Koch <a.koch@eurodata.de></b>
</font>
<br><font size=1 face="sans-serif">Sent by: nagios-users-admin@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">27/12/2004 07:16 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">adamn@eyemedia.com.au</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] Problems with nagios.cmd</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi,<br>
<br>
have you nagios whith mysql install?<br>
<br>
When you have, check_nagios can not check, if the nagios is running.....<br>
<br>
Search in google, and you find a check_nagios for mysql.<br>
<br>
Andreas<br>
<br>
Am Montag, den 27.12.2004, 19:19 +1100 schrieb adamn@eyemedia.com.au:<br>
> <br>
> Hi all,<br>
> <br>
> Well I have exhausted my google options and thought I best put this
to<br>
> the mailing list.<br>
> <br>
> 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<br>
> problems I had to do this to get the cgi's working with suexec and<br>
> Apache 2 on Fedora)<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>
> 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<br>
> 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<br>
> sorts of combinations.<br>
> This is the error I get.. <br>
> <br>
> Error: Could not stat() command file<br>
> '/usr/local/nagios/var/rw/nagios.cmd'! <br>
> The external command file may be missing, Nagios may not be running,<br>
> and/or Nagios may not be checking external commands. <br>
> An error occurred while attempting to commit your command for<br>
> processing <br>
> <br>
> 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<br>
> nagios.<br>
> I have set all the permission's on the /usr/local/nagios/var/rw/ as<br>
> instructed in http://nagios.sourceforge.net/docs/1_0/commandfile.html<br>
> and restarted apache.<br>
> <br>
> Is there any logging/output/debug that I can check/run to try and<br>
> figure out why the cgi's cannot<br>
> access /usr/local/nagios/var/rw/nagios.cmd<br>
> <br>
> Thanks in advance <br>
> <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<br>
<br>
<br>
<br>
-------------------------------------------------------<br>
SF email is sponsored by - The IT Product Guide<br>
Read honest & candid reviews on hundreds of IT Products from real users.<br>
Discover which products truly live up to the hype. Start reading now. <br>
http://productguide.itmanagersjournal.com/<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</tt></font>
<br>