<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=125244115-01082006><FONT face=Arial color=#0000ff size=2>no
idea! i use .htaccess and it works for me! my httpd.conf has the following which
is what i extracted from the docs! </FONT></SPAN></DIV>
<DIV><SPAN class=125244115-01082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125244115-01082006><FONT face=Arial color=#0000ff
size=2>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<BR><Directory
"/usr/local/nagios/sbin"><BR>
AllowOverride AuthConfig<BR> Options
ExecCGI<BR> Order
allow,deny<BR> Allow from
all<BR></Directory></FONT></SPAN></DIV>
<DIV><SPAN class=125244115-01082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125244115-01082006><FONT face=Arial color=#0000ff
size=2><Directory /usr/local/nagios/sbin><BR>AllowOverride
AuthConfig<BR>order allow,deny<BR>allow from all<BR>Options
ExecCGI<BR></Directory></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><BR><FONT face=Arial color=#0000ff size=2>Alias /nagios
/usr/local/nagios/share<BR><Directory
"/usr/local/nagios/share"><BR>
Options None<BR> AllowOverride
AuthConfig<BR> Order
allow,deny<BR> Allow from
all<BR></Directory></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><Directory
/usr/local/nagios/share><BR>AllowOverride AuthConfig<BR>order
allow,deny<BR>allow from all<BR></Directory><SPAN
class=125244115-01082006> </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=125244115-01082006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=125244115-01082006>Maybe there is something else that is fundamentally
wrong! </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=125244115-01082006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=125244115-01082006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=125244115-01082006> </SPAN></FONT></FONT></FONT></SPAN><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Justin Craig
[mailto:jrcraig.email@gmail.com]<BR><B>Sent:</B> 01 August 2006
16:22<BR><B>To:</B> Deborah Martin<BR><B>Cc:</B> Martin J. Green; Hari Sekhon;
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users]
Externals Commands<BR><BR></DIV></FONT>
<BLOCKQUOTE>okay so here is my output:<BR><BR>in my httpd.conf file I
have:<BR><BR>ScriptAlias /nagios/cgi-bin
"/usr/local/nagios/sbin"<BR><Directory
"/usr/local/nagios/sbin"><BR> Options ExecCGI<BR>
AllowOverride AuthConfig<BR> Order allow,deny<BR>
Allow from all<BR> AuthName "Nagios Access"<BR>
AuthType Basic<BR> AuthUserFile
/usr/local/nagios/etc/htpasswd.users<BR> Require
valid-user<BR></Directory><BR><BR>Alias /nagios
"/usr/local/nagios/share"<BR><Directory
"/usr/local/nagios/share"><BR> Options None<BR>
AllowOverride AuthConfig<BR> Order allow,deny<BR>
Allow from all<BR> AuthName "Nagios Access"<BR>
AuthType Basic<BR> AuthUserFile
/usr/local/nagios/etc/htpasswd.users<BR> Require
valid-user<BR></Directory><BR>#<BR><BR>Where is my problem for not being
able to execute external commands or schedule downtime for a host?<BR><BR>
<DIV><SPAN class=gmail_quote>On 8/1/06, <B class=gmail_sendername>Deborah
Martin</B> <<A href="mailto:Deborah.Martin@kognitio.com">
Deborah.Martin@kognitio.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV lang=EN-GB link="blue" vlink="blue">
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>actually you can use
.htaccess or the httpd.conf file it doesn't matter. If you put in the
httpd.conf you have to restart apache - not always convenient to
</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>do that. But using
.htaccess means you don't have to do that and can simply add this file into
the locations required with immediate effect. </FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>Also, htpasswd(2) does as
you say come with apache but it has been known to be included with Nagios!
</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"></BLOCKQUOTE></DIV>
<DIV><SPAN class=q>
<DIV dir=ltr align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> Martin J. Green [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mgreen@altien.com"
target=_blank>mgreen@altien.com</A>]<BR><B>Sent:</B> 01 August 2006
15:36<BR><B>To:</B> Deborah Martin; Justin Craig<BR><B>Cc:</B> Hari Sekhon;
<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net</A><BR><B>Subject:</B> RE:
[Nagios-users] Externals Commands<BR><BR></FONT></DIV></SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV><SPAN class=q>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The .htaccess is
only required if you don't have root access to the server & thus can't
add it to the main httpd.conf. If you have root access, its almost always
better to add it there. In that case you would have no .htaccess file, it
would all be in the server config.</SPAN></FONT></P>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">M</SPAN></FONT></P>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P></SPAN></DIV>
<DIV>
<DIV>
<DIV style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman"
size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV></DIV>
<DIV><SPAN class=q>
<P><B><FONT face=Tahoma size=2><SPAN lang=EN-US
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Deborah Martin [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Deborah.Martin@kognitio.com"
target=_blank>Deborah.Martin@kognitio.com</A>] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 01 August 2006 15:32 <BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> 'Justin Craig'<BR><B><SPAN
style="FONT-WEIGHT: bold">Cc:</SPAN></B> Hari Sekhon; Martin J. Green; <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net</A><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Nagios-users] Externals
Commands</SPAN></FONT><SPAN lang=EN-US></SPAN></P></SPAN></DIV>
<DIV></DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV></DIV>
<DIV><SPAN class=q>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">ok - somewhere in
the nagios docs are the details with regard to setting up .htaccess but
</SPAN></FONT></P></SPAN></DIV>
<DIV></DIV></DIV>
<DIV><SPAN class=q>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I think there is a
utility in the nagios install directory under bin called htpasswd or
htpasswd2 and you run this util to generate a htpasswd.users file
where</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">all the users that
have web interface access are stored including nagiosadmin. I store mine in
the etc install directory. </SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Then in my
.htaccess file i have the following </SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">AuthName "Nagios
Access"<BR>AuthType Basic<BR>AuthUserFile
/usr/local/nagios/etc/htpasswd.users<BR>require
valid-user</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV><SPAN class=q>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">This file resides
in the sbin directory (which is also cgi-bin). Note though - change the
AuthUserFile path to wherever you are storing the htpasswd.users file.
</SPAN></FONT></P></SPAN></DIV>
<DIV></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV></DIV>
<DIV><SPAN class=q>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">When i was getting
the 'return from whence you came error', this was exactly my problem - i
hadn't set up authorisation correctly and the above was how i fixed it.
</SPAN></FONT></P></SPAN></DIV>
<DIV></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">hope this helps.
</SPAN></FONT></P></DIV>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
<P style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Justin
Craig [mailto:<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jrcraig.email@gmail.com"
target=_blank>jrcraig.email@gmail.com</A>]<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 01 August 2006 15:07
<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Deborah
Martin</SPAN></FONT></P></BLOCKQUOTE></DIV>
<DIV><SPAN class=q><FONT face=Tahoma size=2><BR><B><SPAN
style="FONT-WEIGHT: bold">Cc:</SPAN></B> Hari Sekhon; Martin J. Green; <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net</A><BR></FONT></SPAN></DIV>
<DIV><SPAN class=q><FONT face=Tahoma size=2><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Nagios-users] Externals
Commands</FONT></SPAN></DIV>
<DIV>
<P></P></DIV>
<DIV><SPAN class=q>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">so
obviously I RTFM or I wouldn't have got this far. One part that I did
have questions of was the .htaccess creation, as the documentation I read
only provided information for setting up users via htpasswd -c and
changing your authorization functionality in the CGI's to 1.
</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">So I
did a find / -name *.htaccess* and that file doesn't exist. Sounds
like I need one?</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Sorry,
there isn't anything in my /var/www/cgi-bin directory
</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Is
there something missed
here?<BR><BR> </SPAN></FONT></P></DIV></SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV><SPAN class=q>
<P><SPAN><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">On 8/1/06, <B><SPAN
style="FONT-WEIGHT: bold">Deborah Martin</SPAN></B> <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Deborah.Martin@kognitio.com" target=_blank>
Deborah.Martin@kognitio.com</A>> wrote:</SPAN></FONT></SPAN>
</P></SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV><SPAN class=q>
<DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">can you forward the
contents of the .htaccess file that resides in the cgi-bin directory ?
and a listing of the rest of the directory including the
permissions</SPAN></FONT> </P></DIV></DIV></SPAN></DIV>
<DIV>
<DIV><SPAN>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
<P style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"></SPAN></FONT></P></BLOCKQUOTE></SPAN></DIV>
<DIV><SPAN class=q><FONT face=Tahoma size=2>-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Justin
Craig [mailto:<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jrcraig.email@gmail.com" target=_blank>
jrcraig.email@gmail.com</A>]<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 01 August 2006 14:46<BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> Deborah
Martin<BR></FONT></SPAN></DIV>
<DIV><SPAN class=q><FONT face=Tahoma size=2><B><SPAN
style="FONT-WEIGHT: bold">Cc:</SPAN></B> Hari Sekhon; Martin J. Green; <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net</A><BR></FONT></SPAN></DIV>
<DIV><SPAN class=e id=q_10cca3651415215e_26><FONT face=Tahoma
size=2><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re:
[Nagios-users] Externals Commands</FONT></SPAN></DIV>
<DIV>
<P></P></DIV>
<DIV><SPAN class=e id=q_10cca3651415215e_28>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">i'm
logged in as nagiosadmin and i have that username in all my cgi's. I
have the sameissue, can't schedule downtime or issue external commands with
the same error. I'm running nagios
2.4<BR><BR> </SPAN></FONT></P></DIV></SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV><SPAN class=e id=q_10cca3651415215e_30>
<P><SPAN><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">On 8/1/06, <B><SPAN
style="FONT-WEIGHT: bold">Deborah Martin</SPAN></B> <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Deborah.Martin@kognitio.com" target=_blank>
Deborah.Martin@kognitio.com </A>> wrote:</SPAN></FONT></SPAN> </P>
<DIV>
<DIV bgcolor="#ffffff" text="#000000">
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">look at your
/usr/local/nagios/sbin directory and check a) file permissions are correct
and also whether your .htaccess authrization file is present.
</SPAN></FONT></P></DIV>
<DIV>
<P><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">This error is
generally caused by not correctly using .htaccess and also not configuring
apache properly - check your httpd.conf is correctly
configured</SPAN></FONT> </P></DIV></DIV>
<DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
<P style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Hari
Sekhon [mailto:<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:hpsekhon@googlemail.com" target=_blank>
hpsekhon@googlemail.com</A>]<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 01 August 2006
14:14<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Martin J.
Green<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net </A><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Nagios-users] Externals
Commands</SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Martin J. Green wrote: </SPAN></FONT></P>
<DIV>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I can't get
external commands to work either (appears it can't write to the file for
some reason), but its so low on my list of priorities I haven't gotten to
it yet. </SPAN></FONT></P>
<DIV>
<DIV style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman"
size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P><B><FONT face=Tahoma size=2><SPAN lang=EN-US
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users-bounces@lists.sourceforge.net"
target=_blank>nagios-users-bounces@lists.sourceforge.net</A> [<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users-bounces@lists.sourceforge.net" target=_blank>
mailto:nagios-users-bounces@lists.sourceforge.net</A>] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Hari Sekhon<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> 01 August 2006
13:48<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users@lists.sourceforge.net"
target=_blank>nagios-users@lists.sourceforge.net </A><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject: </SPAN></B>[Nagios-users] Externals
Commands</SPAN></FONT></P></DIV>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" color=black
size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black">I am having real
difficulty getting external commands to work and don't full understand
what's going wrong, despite having RTFMing several times. <BR><BR>As an
example, I log in to the web interface as nagiosadmin via basic apache
auth successfully as usual. I go to "comments" in the left hand pane and
enter one for a host but when I click submit, I get the error:
</SPAN></FONT></P>
<DIV>
<P><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: black">"Sorry, but you are not authorized
to commit the specified command.</SPAN></FONT></P></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" color=black
size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black">Read the section of the
documentation that deals with authentication and authorization in the CGIs
for more information. <BR><BR>Return from whence you came"<BR><BR>As far
as I can tell, I have all the perms set right according to the
docs:<BR><BR>cgi.cfg<BR><BR>use_authentication=1<BR>authorized_for_system_information=nagiosadmin
<BR>authorized_for_configuration_information=nagiosadmin<BR>authorized_for_system_commands=nagiosadmin<BR>authorized_for_all_services=nagiosadmin<BR>authorized_for_all_hosts=nagiosadmin<BR>authorized_for_all_service_commands=nagiosadmin
<BR>authorized_for_all_host_commands=nagiosadmin<BR><BR>nagios.cfg<BR><BR>command_file=/var/nagios/rw/nagios.cmd<BR>check_external_commands=1<BR>#
NOTE: Setting this value to -1 causes Nagios to check the external<BR>#
command file as often as possible. <BR>command_check_interval=-1<BR><BR>ll
/var/nagios/ | grep rw/<BR>drwxrws--- 2 nagios apache 4096 Aug
1 13:28 rw/<BR><BR>ll /var/nagios/rw/nagios.cmd<BR>prw-rw---- 1 nagios
apache 0 Aug 1 13:28 /var/nagios/rw/nagios.cmd| <BR><BR>The apache
process is run by the apache user, a member of the apache group, so has
full perms to the directory and the pipe file nagios.cmd. Nagios is run by
nagios who is also a member of the apache group.<BR><BR>This all looks as
it should be according to the docs as far as I can
see.</SPAN></FONT></P></DIV>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" color=black
size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black">What am I
missing?<BR><BR><BR>Hari</SPAN></FONT></P></DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR>I
think quite a lot of people have trouble with this but a lot give up or
are satisfied that the main bit is working and don't bother with this...
<BR><BR>does anybody have this working and if so could you post your
configs so I can see anything you have different to me?<BR><BR>are
external commands generally broken or is there something missing in the
docs/our configs/our brains? <BR><BR>I'm using Version
1.4.1<BR><BR>Hari</SPAN></FONT></P></BLOCKQUOTE></DIV>
<DIV>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised distribution or copying is strictly prohibited. Whilst
Kognitio Limited takes steps to prevent the transmission of viruses via
e-mail, we can not guarantee that any email or attachment is free from
computer viruses and you are strongly advised to undertake your own
anti-virus precautions. Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no liability for
loss or damage, howsoever caused.
***********************************************************************
</SPAN></FONT></P></DIV></DIV></SPAN></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><BR>-------------------------------------------------------------------------</SPAN></FONT></P></DIV>
<DIV><SPAN class=q><FONT face="Times New Roman" size=3><BR>Take Surveys.
Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's Techsay
panel and you'll get the chance to share your <BR>opinions on IT &
business topics through brief surveys -- and earn cash<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV"
target=_blank>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A><BR><BR>_______________________________________________<BR>Nagios-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Nagios-users@lists.sourceforge.net"
target=_blank>Nagios-users@lists.sourceforge.net</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users
</A><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</FONT></SPAN></DIV>
<DIV>
<P></P></DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR><BR
clear=all><BR>-- <BR>- Justin </SPAN></FONT></P></DIV></DIV></DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR><BR
clear=all><BR>-- <BR>- Justin
</SPAN></FONT></P></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>- Justin </BLOCKQUOTE></BODY></HTML>