It's still giving me an unauthorized message.  I've verified the credentials work for me to get in through a browser.  Is there something else I could be missing? <br><br>
<div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">GJP</b> <<a href="mailto:gjp@gpnet.nl">gjp@gpnet.nl</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jerad,<br><br>No entirely, because you feed the arguments to the actual command with $ARGn$<br><br>So in de service definition:
<br><br>check_http!site.com!5!admin:password<br><br>And the command_line format in command definition (probably<br>in: /etc/nagios-plugins/config/http.cfg) should be:<br><br>command_line    /usr/lib/nagios/plugins/check_http -H $ARG1$ -t $ARG2$ -a
<br>$ARG3$<br><br>Be carefull with that "-t 5" btw. That is a very low value to timeout.<br><br>Hope it helps.<br><br>Regards,<br><br>Gerard.<br><br>On Friday 22 June 2007 19:17:29 Jerad Riggin wrote:<br>> So check_http!-H 
<a href="http://site.com">site.com</a> -t 5 -a admin:password<br>><br>> should be<br>><br>> check_http!-H site.com!-t 5!-a admin:password?<br>><br>> On 6/22/07, GJP <<a href="mailto:gjp@gpnet.nl">gjp@gpnet.nl
</a>> wrote:<br>> > Jerad,<br>> ><br>> > I didn't understand that either. That's why I customized the the<br>> > check_http<br>> > command definition. That way (in my previous example) you can have your
<br>> > http<br>> > checks from any Nagios client. Usefull for instance for  off-site checks.<br>> ><br>> > Regarding the -a switch. The -a $ARG1$ (or whatever) should be in your<br>> > command
<br>> > definition. And your parms as you 'feed' them to the command in your<br>> > service<br>> > definition seperated with "!".<br>> ><br>> > Regards,<br>> ><br>> > Gerard.
<br>> ><br>> > On Friday 22 June 2007 16:59:30 Jerad Riggin wrote:<br>> > > If I change the hosts.cfg from the IP of the server (<a href="http://10.10.10.7">10.10.10.7</a>) to the<br>> ><br>> > URL
<br>> ><br>> > > I'm specifying in services.cfg, it works fine.  The default site for<br>> > > <a href="http://10.10.10.7">10.10.10.7</a> is a CRM site which requires basic auth.  So even though i'm
<br>> > > specifying a URL in services.cfg, it looks like it's be overridden by<br>> ><br>> > the<br>> ><br>> > > hosts.cfg so it can't auth.  What is the point of the -H switch in
<br>> > > services.cfg if it always uses the IP for the host in hosts.cfg?  I<br>> ><br>> > tried<br>> ><br>> > > that format (-a admin:password) at the end of the check in<br>> > > 
services.cfgbut it still failed with unauthorized.<br>> > ><br>> > > On 6/22/07, Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:<br>> > > > > -----Original Message-----
<br>> > > > > From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<br>> ><br>> > nagios-users-<br>> ><br>> > > > > 
<a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Jerad Riggin<br>> > > > > Sent: Friday, June 22, 2007 8:41 AM<br>> > > > > To: GJP<br>> > > > > Cc: 
<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>> > > > > Subject: Re: [Nagios-users] Nagios HTTP monitoring<br>> > > > ><br>> > > > > I have a check_http command that works perfectly at the command
<br>> ><br>> > prompt<br>> ><br>> > > > > ./check_http -H lagarde -t 5 -s "LaGarde Intranet site"<br>> > > > ><br>> > > > > However in nagios, check_http!-H lagarde -t 5 -s "LaGarde Intranet
<br>> > > ><br>> > > > site"<br>> > > ><br>> > > > > still returns an unauthorized.  So basically why would it work in a<br>> > > > > command prompt but not in nagios?
<br>> > > ><br>> > > > Perhaps some difference in environment? Did you test as the nagios<br>> ><br>> > user?<br>> ><br>> > > > Is that the _exact_ way it's defined in the config?
<br>> > > ><br>> > > > > And what is the syntax for the -a<br>> > > > > (basic auth) switch?  Thanks again for everyones help.<br>> > > ><br>> > > > -a username:password.
<br>> > > ><br>> > > > --<br>> > > > Marc<br>> ><br>> > -------------------------------------------------------------------------<br>> ><br>> > > > This SF.net
 email is sponsored by DB2 Express<br>> > > > Download DB2 Express C - the FREE version of DB2 express and take<br>> > > > control of your XML. No limits. Just data. Click to get it now.<br>> > > > 
<a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>> > > > _______________________________________________<br>> > > > Nagios-users mailing list<br>> > > > 
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> > > > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>> > > ><br>> > > > ::: Please include Nagios version, plugin version (-v) and OS when<br>> > > ><br>> > > > reporting any issue.<br>> > > ><br>> > > > ::: Messages without supporting info will risk being sent to
<br>> > > > ::: /dev/null<br><br><br></blockquote></div><br>