<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Ludse Verhoeven wrote:
<blockquote
 cite="midOF26CD632F.CC683DB6-ONC1256FF1.00335314-C1256FF1.0033886A@Vopak.com"
 type="cite"><br>
  <font face="sans-serif" size="2">You're right about this being a
permissions
issue; either make the apache-user a member of the nagioscmd-group </font></blockquote>
That was done and it's not working...<br>
<blockquote
 cite="midOF26CD632F.CC683DB6-ONC1256FF1.00335314-C1256FF1.0033886A@Vopak.com"
 type="cite"><font face="sans-serif" size="2">or alter
the group on the nagios.cmd-file to be group-owned by the apache-group.
Then it should work fine.....</font>
  <br>
  <br>
  <font face="sans-serif" size="2">Grtz,</font>
  <br>
  <font face="sans-serif" size="2">      Ludse Verhoeven</font>
  <br>
  <br>
  <br>
  <br>
  <table width="100%">
    <tbody>
      <tr valign="top">
        <td width="40%"><font face="sans-serif" size="1"><b>John
McGowan <a class="moz-txt-link-rfc2396E" href="mailto:mcgowan@lynch2.com"><mcgowan@lynch2.com></a></b>
        </font><br>
        <font face="sans-serif" size="1">Sent by:
<a class="moz-txt-link-abbreviated" href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a></font>
        <p><font face="sans-serif" size="1">27-04-2005 22:33</font>
        </p>
        </td>
        <td width="59%">
        <table width="100%">
          <tbody>
            <tr>
              <td>
              <div align="right"><font face="sans-serif" size="1">To</font></div>
              </td>
              <td valign="top"><font face="sans-serif" size="1"><a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a></font>
              </td>
            </tr>
            <tr>
              <td>
              <div align="right"><font face="sans-serif" size="1">cc</font></div>
              </td>
              <td valign="top"><br>
              </td>
            </tr>
            <tr>
              <td>
              <div align="right"><font face="sans-serif" size="1">Subject</font></div>
              </td>
              <td valign="top"><font face="sans-serif" size="1">Re:
[Nagios-users] External
Commands not working</font></td>
            </tr>
          </tbody>
        </table>
        <br>
        <table>
          <tbody>
            <tr valign="top">
              <td>
              <br>
              </td>
              <td><br>
              </td>
            </tr>
          </tbody>
        </table>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <br>
  <br>
  <font size="3"><br>
  <br>
John McGowan wrote: </font>
  <br>
  <font size="3">No question about this being a permissions issue...  I
set the /usr/local/nagios/var/rw directory to 777 and it works fine...
Obviously i don't want to have to do that.  So for some reason httpd
either isn't executing the cgi script as nobody... or the nagiocmd
group
that has nobody in it isn't working right...</font>
  <br>
  <font size="3">I can get external command to work if I do the
following...<br>
  <br>
  <br>
[root@gob rw]# chmod 777 .<br>
[root@gob rw]# chmod g+s .<br>
[root@gob rw]# ls -al<br>
total 8<br>
drwxrwsrwx  2 nagios nagiocmd 4096 Apr 27 15:29 .<br>
drwxrwxr-x  4 nagios nagios   4096 Apr 27 15:30 ..<br>
prw-rw--w-  1 nagios nagiocmd    0 Apr 27 15:29 nagios.cmd<br>
  <br>
Notice I also have to give world write permissions on nagios.cmd...<br>
  <br>
/John</font>
  <br>
  <font size="3"><br>
/John<br>
  <br>
John McGowan wrote: </font>
  <br>
  <font size="3"><br>
  <br>
John McGowan wrote: </font>
  <br>
  <font size="3"><br>
  <br>
Marc Powell wrote: </font>
  <br>
  <font size="3"><tt>  </tt></font>
  <br>
  <font size="3"><tt>-----Original Message-----<br>
From: </tt></font><a
 href="mailto:nagios-users-admin@lists.sourceforge.net"><font
 color="blue" size="3"><tt><u>nagios-users-admin@lists.sourceforge.net</u></tt></font></a><font
 size="3"><tt>
[</tt></font><a href="mailto:nagios-users"><font color="blue" size="3"><tt><u>mailto:nagios-users</u></tt></font></a><font
 size="3"><tt>-<br>
  </tt></font><a href="mailto:admin@lists.sourceforge.net"><font
 color="blue" size="3"><tt><u>admin@lists.sourceforge.net</u></tt></font></a><font
 size="3"><tt>]
On Behalf Of John McGowan<br>
Sent: Wednesday, April 27, 2005 11:57 AM<br>
To: </tt></font><a href="mailto:nagios-users@lists.sourceforge.net"><font
 color="blue" size="3"><tt><u>nagios-users@lists.sourceforge.net</u></tt></font></a><font
 size="3"><tt><br>
Subject: Re: [Nagios-users] External Commands not working<br>
  <br>
   </tt></font>
  <br>
  <font size="3"><tt><br>
[snip]<br>
 </tt></font>
  <br>
  <font size="3">The error I'm seeing  is in the browser...</font>
  <br>
  <font size="3"><tt>Everything else looks fine with the exception of
the
possible need for a hard restart of apache.<br>
 </tt></font>
  <br>
  <font size="3">That's a shame, because I did a hard restart and it's
still not working...<br>
  <br>
Should I recompile with some debugging options or something to figure
out
what cmd.cgi is having a problem with?</font>
  <br>
  <font size="3"><br>
I just noticed a slight difference between before the Hard reset of
apache
and now... I am getting a different error in the browser... it's not
complaining
about the "stat" failing, it's complaining about not being able
to open the file.... Still doesn't make sense to me, i've been staring
at these permissions for a couple days now, and I don't understand why
it wouldn't work.<br>
  <br>
Just incase it helps I'm using httpd-2.0.52<br>
  <br>
/John<br>
  </font>
  <br>
  <font size="3"><tt> <br>
  <br>
--<br>
Marc<br>
  <br>
  <br>
-------------------------------------------------------<br>
SF.Net email is sponsored by: Tell us your software development plans!<br>
Take this survey and enter to win a one-year sub to SourceForge.net<br>
Plus IDC's 2005 look-ahead and a copy of this survey<br>
Click here to start!  </tt></font><a
 href="http://www.idcswdc.com/cgi-bin/survey?id%105hix"><font
 color="blue" size="3"><tt><u>http://www.idcswdc.com/cgi-bin/survey?id5hix</u></tt></font></a><font
 size="3"><tt><br>
_______________________________________________<br>
Nagios-users mailing list<br>
  </tt></font><a href="mailto:Nagios-users@lists.sourceforge.net"><font
 color="blue" size="3"><tt><u>Nagios-users@lists.sourceforge.net</u></tt></font></a><font
 size="3"><tt><br>
  </tt></font><a
 href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><font
 color="blue" size="3"><tt><u>https://lists.sourceforge.net/lists/listinfo/nagios-users</u></tt></font></a><font
 size="3"><tt><br>
::: Please include Nagios version, plugin version (-v) and OS when
reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
  <br>
 </tt></font>
  <br>
</blockquote>
</body>
</html>