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 I'm specifying in services.cfg, it works fine. The default site for <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 specifying a URL in services.cfg, it looks like it's be overridden by the hosts.cfg so it can't auth. What is the point of the -H switch in services.cfg
if it always uses the IP for the host in hosts.cfg? I tried that format (-a admin:password) at the end of the check in services.cfg but it still failed with unauthorized.<br><br>
<div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">Marc Powell</b> <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><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>site"<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>::: 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></blockquote></div><br>