nagios.cmd permission issue

Ilan Berkner iberkner at gmail.com
Sun Oct 3 08:55:25 CEST 2010


Hi,

New to Nagios...

Got everything pretty much running, except when I try to modify things using
the web interface, I get this error:

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for
update!

The permissions on the external command file and/or directory may be
incorrect. Read the FAQs on how to setup proper permissions.

An error occurred while attempting to commit your command for processing.


This is clearly a permission issue as when I manually change the permissions
of the /rw/nagios.cmd to 777 for example, it works fine.  When the service
is restarted and the pipe is recreated though, the permissions are re-set.

I am running the nginx web server, not apache.

SELinux is disabled.

The rw directory has 777 permissions and is owned by the nagios user and
group.

The Nginx server runs under a different user / group and this could be the
issue.  However, I tried to set up the rw directory with that user and group
and still no luck.

Help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101003/f1273a08/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
-------------- next part --------------
_______________________________________________
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