External Commands not working

Gerard Marcel men.makaron at gmail.com
Thu Mar 17 21:38:18 CET 2005


Make sure you have created the rw directory and that it has correct
permission.  double check the cgi.cfg and nagios.cfg files.  external
commands have to be turned on.

GM


On Thu, 17 Mar 2005 09:49:22 -0800, Scott Gwartney <gwartney at hotmail.com> wrote:
> I'm running Nagios v.2.0b1 on Fedora 3.0 Apache 2.0.52. When trying to
> execute external commands from the web interface I get this error:
> 
> Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
> 
> The external command file may be missing, Nagios may not be running, and/or
> Nagios may not be checking external commands.
> 
> An error occurred while attempting to commit your command for processing.
> 
> I've followed the directions exactly (several times!). Apache is a member of
> Nagiocmd group, in fact I've tried giving full permissions to everyone on
> the '/usr/local/nagios/var/rw/ folder and all its files with no success.
> 
> Nothing shows up in the httpd logs. The system message log shows this:
> 
> avc:  denied  { getattr } for  pid=5446 exe=/usr/local/nagios/sbin/cmd.cgi
> path=/usr/local/nagios/var/rw/nagios.cmd dev=dm-0 ino=3591465
> scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:usr_t
> tclass=fifo_file
> 
> TYIA
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list