<!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 text=#000000 bgColor=#ffffff>
<DIV><SPAN class=310021513-01082006><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 class=310021513-01082006><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><SPAN class=310021513-01082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Hari Sekhon 
  [mailto:hpsekhon@googlemail.com]<BR><B>Sent:</B> 01 August 2006 
  14:14<BR><B>To:</B> Martin J. Green<BR><B>Cc:</B> 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] 
  Externals Commands<BR><BR></FONT></DIV>Martin J. Green wrote: 
  <BLOCKQUOTE 
  cite=mid5F54491268C784439D51B163322EE58C2F7B6B@gorilla.hq.altien.com 
  type="cite">
    <META content="Microsoft Word 11 (filtered medium)" name=Generator><!--[if !mso]>
    <STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
    <STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
    <DIV class=Section1>
    <P class=MsoNormal><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.<O:P></O:P></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
    <DIV>
    <DIV class=MsoNormal 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 tabIndex=-1 align=center width="100%" SIZE=2>
    </SPAN></FONT></DIV>
    <P class=MsoNormal><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 
    class=moz-txt-link-abbreviated 
    href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</A> 
    [<A class=moz-txt-link-freetext 
    href="mailto:nagios-users-bounces@lists.sourceforge.net">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 
    class=moz-txt-link-abbreviated 
    href="mailto:nagios-users@lists.sourceforge.net">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"><O:P></O:P></SPAN></FONT></P></DIV>
    <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
    style="FONT-SIZE: 12pt"><FONT face=Arial color=#0000ff 
    size=2></FONT><O:P></O:P></SPAN></FONT></P>
    <P class=MsoNormal 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:<O:P></O:P></SPAN></FONT></P>
    <DIV>
    <P class=MsoNormal><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.<O:P></O:P></SPAN></FONT></P></DIV>
    <DIV>
    <P class=MsoNormal 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.<O:P></O:P></SPAN></FONT></P></DIV>
    <P class=MsoNormal 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<O:P></O:P></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>
************************************************************************
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.
***********************************************************************

</BODY></HTML>