<div>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.
</div>
<div> </div>
<div>So I did a find / -name *.htaccess* and that file doesn't exist. Sounds like I need one?</div>
<div> </div>
<div>Sorry, there isn't anything in my /var/www/cgi-bin directory </div>
<div> </div>
<div>Is there something missed here?<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>
<div><span><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></div>
<div><span class="e" id="q_10cc9fdef7d93816_1">
<blockquote>
<div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</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>Sent:</b> 01 August 2006 14:46<br><b>To:</b> Deborah Martin<br><b>Cc:</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>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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Deborah.Martin@kognitio.com" target="_blank">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 text="#000000" bgcolor="#ffffff">
<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>
<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" 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<br><br></blockquote></div><br><br clear="all"><br>--
<br>- Justin </blockquote></span></div>
<div></div></div></blockquote></div><br><br clear="all"><br>-- <br>- Justin