<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Thanks for your response.
<BR>
I was looking to solve this trouble, and didn't find how to solve it into the documentation.
<BR>
I works very fine for me, on a RH 7.3
<BR>

<BR>
-Pascal
<BR>

<BR>

<BR>
Le ven 15/11/2002 à 22:11, Carroll, Jim P [Contractor] a écrit :
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>That should work, but I think the docs suggest the following:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>- create the group nagiocmd (note that it's not 'nagioscmd')</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>- add the username that Apache runs under to that group</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>- 'chgrp nagiocmd /usr/local/nagios/var/rw'</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>- 'chmod g+s /usr/local/nagios/var/rw'</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Restart nagios, and you should be good to go.  If Apache still balks, give</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>it a restart, too.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>jc</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> -----Original Message-----</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> From: Kevin L. Papendick [mailto:papendick@nexserver.com]</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Sent: Friday, November 15, 2002 2:36 PM</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> To: chris.jacob@apropos.com</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Cc: nagios-users@lists.sourceforge.net</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Subject: Re: [Nagios-users] Help Please</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Chris,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I'm fairly new to this, so you will probably get better answers from </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> others.  When I was having  this problem it was because the </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> web server </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> runs as nobody|nogroup and the directory (in your case </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> /usr/local/nagios/var/rw) was either root|root or nagios|nagios (I </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> believe the later).  I chmod g+s on the directory and chgrp </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> nogroup on </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> it also.  After that I could ACK and such without a problem.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> -klp</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Christopher Jacob wrote:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >I seem to have things set up for the most part, but when </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ever I try any</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >commands from the web interface (clear and alarm, etc.) I get the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >following...</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >----</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Error: Could not open command file </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> '/usr/local/nagios/var/rw/nagios.cmd'</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >for update!</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >The permissions on the external command file and/or directory may be</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >incorrect. Read the FAQs on how to setup proper permissions. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >An error occurred while attempting to commit your command for</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >processing.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >----</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >I have followed the doc step by step in the "External Command File</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Permissions" section, but to now avail. I have even tried giving</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >everyone full access to the file, but nothing seems to work.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >I know this is petty, but any help would be appreciated.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Thanks</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Chris</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >-------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >This sf.net email is sponsored by: To learn the basics of securing </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >your web site with SSL, click here to get a FREE TRIAL of a Thawte </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Server Certificate: http://www.gothawte.com/rd524.html</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >_______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Nagios-users mailing list</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >Nagios-users@lists.sourceforge.net</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >https://lists.sourceforge.net/lists/listinfo/nagios-users</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> >  </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> -- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ********************************</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Kevin L. Papendick</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Programmer Analyst</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Nexserver, Inc.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> www.nexserver.com</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> papendick@nexserver.com</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> (v) 716-655-9968</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> (f) 716-655-9982</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ********************************</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> -------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> This sf.net email is sponsored by: To learn the basics of securing </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> your web site with SSL, click here to get a FREE TRIAL of a Thawte </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Server Certificate: http://www.gothawte.com/rd524.html</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> _______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Nagios-users mailing list</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Nagios-users@lists.sourceforge.net</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> https://lists.sourceforge.net/lists/listinfo/nagios-users</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>This sf.net email is sponsored by: To learn the basics of securing </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>your web site with SSL, click here to get a FREE TRIAL of a Thawte </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Server Certificate: http://www.gothawte.com/rd524.html</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Nagios-users mailing list</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Nagios-users@lists.sourceforge.net</FONT></FONT></I></PRE>
    </BLOCKQUOTE>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users"><FONT SIZE="3"><I>https://lists.sourceforge.net/lists/listinfo/nagios-users</FONT></I></A>
    <BLOCKQUOTE>
<PRE></PRE>
    </BLOCKQUOTE>
</BODY>
</HTML>