<div>So check_http!-H <a href="http://site.com">site.com</a> -t 5 -a admin:password </div>
<div> </div>
<div>should be</div>
<div> </div>
<div>check_http!-H site.com!-t 5!-a admin:password?<br><br> </div>
<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>I didn't understand that either. That's why I customized the the check_http<br>command definition. That way (in my previous example) you can have your 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 command<br>definition. And your parms as you 'feed' them to the command in your 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 URL<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 the<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 tried<br>> that format (-a admin:password) at the end of the check in services.cfg but<br>> 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:<a href="mailto:nagios-users-">
nagios-users-</a><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 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 user?
<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>> > 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 /dev/null<br><br><br></blockquote></div><br>