[Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
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

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Rutger Blom
Set the sticky bit on the directory. Rutger On Sun, Oct 3, 2010 at 8:55 AM, Ilan Berkner iberk...@gmail.com wrote: 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

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? On Sun, Oct 3, 2010 at 5:03 AM, Rutger Blom rut...@blokje.net wrote: Set the sticky bit on the directory. Rutger On Sun, Oct 3, 2010 at

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Marc Powell
On Oct 3, 2010, at 8:48 AM, Ilan Berkner wrote: Did not work, probably b/c I'm restarting the service as root? Is there a way to tell under which user nagios is trying to access the nagios.cmd file? Your web server is trying to write to the pipe so it's whatever user your web server is

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010 at 10:37 AM, Marc Powell li...@xodus.org wrote: On Oct 3, 2010, at 8:48 AM, Ilan Berkner

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
I followed the instructions in commandfile.html documentation to the letter, its still not working. Its clearly a permissions issue between the user that the web server is running as and the user that nagios is running is. I did create a nagcmd group where both users are a part of and set up the

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many thanks... On Sun, Oct 3, 2010 at 1:25 PM, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Charlie R
Lets start here... What is your nginx server running as? You can specify it or it takes the owner that starts it depending how you have it configured. So if it's not specified, do a 'ps aux|grep nginx' and check it there. What is your nagios server running as? I am going to guess

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Rutger Blom
Who's the owner of the pipe? On 3 okt 2010, at 19.25, Ilan Berkner iberk...@gmail.com wrote: Yep, there's no question that's what it is, but I've set it up so that the webserver user is part of the group that owns the rw directory with the sticky bit set, but no luck (yet) On Sun, Oct 3, 2010

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Robert Wolfe
Unfortunately, I did the same and am still getting the same error. From: Ilan Berkner [mailto:iberk...@gmail.com] Sent: Sunday, October 03, 2010 1:35 PM To: Nagios Users List Subject: Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread frank
nagios-users@lists.sourceforge.net To: nagios-users@lists.sourceforge.net 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

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Rutger Blom
...@gmail.com] *Sent:* Sunday, October 03, 2010 1:35 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group as that of the web server. Still getting this command file issue. Any other suggestions? Many

Re: [Nagios-users] nagios.cmd permission issue

2010-10-03 Thread Ilan Berkner
and am still getting the same error. *From:* Ilan Berkner [mailto:iberk...@gmail.com] *Sent:* Sunday, October 03, 2010 1:35 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] nagios.cmd permission issue I've reconfigured nagios to run as the same user and group as that of the web