<!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=387344713-01082006><FONT face=Arial color=#0000ff size=2>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</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><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
14:46<BR><B>To:</B> Deborah Martin<BR><B>Cc:</B> Hari Sekhon; Martin J. Green;
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users]
Externals Commands<BR><BR></FONT></DIV>
<DIV>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> </DIV>
<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: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV bgcolor="#ffffff" text="#000000">
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>look at your
/usr/local/nagios/sbin directory and check a) file permissions are correct
and also whether your .htaccess authrization file is present.
</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>This error is generally
caused by not correctly using .htaccess and also not configuring apache
properly - check your httpd.conf is correctly configured</FONT></SPAN>
</DIV></DIV>
<DIV><SPAN class=e id=q_10cc9e29303167e4_1>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
<DIV dir=ltr align=left><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</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>Sent:</B> 01 August 2006
14:14<BR><B>To:</B> Martin J. Green<BR><B>Cc:</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>Subject:</B>
Re: [Nagios-users] Externals Commands<BR><BR></FONT></DIV>Martin J. Green
wrote:
<BLOCKQUOTE
cite=http://mid5F54491268C784439D51B163322EE58C2F7B6B@gorilla.hq.altien.com
type="cite">
<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>
<P><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT></P>
<DIV>
<DIV style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN lang=EN-US
style="FONT-SIZE: 12pt; COLOR: windowtext">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P><B><FONT face=Tahoma color=black size=2><SPAN lang=EN-US
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma color=black size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: windowtext; 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><FONT color=black><SPAN lang=EN-US
style="COLOR: windowtext"></SPAN></FONT></P></DIV>
<P><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt"><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></P>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" color=black
size=3><SPAN style="FONT-SIZE: 12pt">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">"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">Read the section of the
documentation that deals with authentication and authorization in the
CGIs for more information. <BR><BR><A>Return from whence you
came"</A><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">What am I
missing?<BR><BR><BR>Hari</SPAN></FONT></P></DIV></BLOCKQUOTE><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<BR></BLOCKQUOTE></SPAN></DIV>
<DIV>************************************************************************
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.
***********************************************************************
</DIV></DIV><BR>-------------------------------------------------------------------------<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">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<BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>-
Justin </BLOCKQUOTE></BODY></HTML>