I have a fairly complicated setup at work where I don't have the option of
changing groups around system-wide so what I do is edit the startup file
instead.
You could edit the "start()" function to have an explicit "chgrp" on the
command-pipe to whatever group you need for your setup (after the daemon
has been started of course so the command-pipe file exists). We use "chgrp
apache /var/log/nagios/rw/nagios.cmd". It's a bit of a kludge but it
works!
Another possibility is that your setup is just fine but the nagcmd group
(of which both the apache and nagios users should be a member) was created
after your apache process was already running. In this case you just need
to restart apache so it can pick up its new group permissions.
-f
On Sun, 3 Oct 2010, Ilan Berkner wrote:
Date: Sun, 3 Oct 2010 02:55:25 -0400
From: Ilan Berkner <[email protected]>
Reply-To: Nagios Users List <[email protected]>
To: [email protected]
Subject: [Nagios-users] nagios.cmd permission issue
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?
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security
easier or more difficult to achieve? Read this whitepaper to separate the
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Nagios-users mailing list
[email protected]
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