<div>I have a check_http command that works perfectly at the command prompt</div>
<div> </div>
<div>./check_http -H lagarde -t 5 -s "LaGarde Intranet site"</div>
<div> </div>
<div>However in nagios, check_http!-H lagarde -t 5 -s "LaGarde Intranet site" still returns an unauthorized.  So basically why would it work in a command prompt but not in nagios?  And what is the syntax for the -a (basic auth) switch?  Thanks again for everyones help.
<br><br> </div>
<div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">Jerad Riggin</b> <<a href="mailto:jriggin@gmail.com">jriggin@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Disregard that previous e-mail, I figured it out.  Thanks, I appreciate the help. 
<div><span class="e" id="q_113539463a2b314a_1"><br><br>
<div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">GJP</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gjp@gpnet.nl" target="_blank">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">Yes ofcourse there is. This one is for Samba: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.samba.org/" target="_blank">
www.samba.org</a><br><br>And like Patrick said if you do a "check_http -h" it tells you what ik can do. <br>And if you're on a common linux distro. you can find files with:<br><br>"locate [filename]"
<br><br>Then I would also check:<br><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nagios.sourceforge.net/docs/2_0/beginners.html" target="_blank">http://nagios.sourceforge.net/docs/2_0/beginners.html 
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html
</a><br><br>And I would take your time for all this. My linux experience is over 8 years <br>and it took me three weeks to have a full blown secure sms sending Nagios<br>setup.<br><br>Goodluck!<br><br>G<br><br>On Thursday 21 June 2007 23:24:43 Jerad Riggin wrote:
<br>> Is there any link to information about that?  Like I said this is basically <br>> the 2nd day I've used Linux and Nagios so much of this seems like a<br>> different language to me.  Thanks for the info.
<br>><br>> On 6/21/07, GJP <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gjp@gpnet.nl" target="_blank">gjp@gpnet.nl</a>> wrote: <br>> > Hi Jerad,<br>> ><br>> > If you mean http auth, this is what I use.
<br>> ><br>> > The check_command in the service definition:<br>> ><br>> > check_command<br>> > check_http_auth!host.example.com!/path!user:password <br>> ><br>> > And the command definition.
<br>> ><br>> > define command{<br>> >        command_name    check_http_auth<br>> >        command_line    /usr/lib/nagios/plugins/check_http -H $ARG1$ -u <br>> > $ARG2$ -a $ARG3$<br>> >        }
<br>> ><br>> > But if you mean authentication within a windows AD domain. Maybe Samba<br>> > can help. Because then you can make your linux server a member of the AD <br>> > domain.<br>> ><br>
> > Regards,<br>> ><br>> > Gerard.<br>> ><br>> > On Thursday 21 June 2007 22:48:08 Jerad Riggin wrote:<br>> > > I'm new to Linux and new to Nagios so this may sound very stupid. 
<br>> > > Basically I have everything up and running, ping tests work, http tests<br>> > > work, and the smtp test I have setup works.  If the host goes down I<br>> > > get<br>> ><br>> > a 
<br>> ><br>> > > host down alert and a host up alert once the problem is resolved.  Is<br>> ><br>> > there<br>> ><br>> > > a way to have Nagios send me an alert for critical status?  I'm pretty 
<br>> ><br>> > sure<br>> ><br>> > > I have that setup but it isn't working.  After this I went ahead and<br>> > > set<br>> ><br>> > up<br>> ><br>> > > basic HTTP monitoring for all of our servers, however, 403 errors are 
<br>> ><br>> > not<br>> ><br>> > > sending any notifications to me.  Also, I'm trying to monitor the CRM<br>> ><br>> > site<br>> ><br>> > > on our windows domain however since the Linux box is obviously not on 
<br>> ><br>> > the<br>> ><br>> > > domain, it can't authenticate when hitting the site so it can't find<br>> > > the string i've specified.  Any ideas on how to make nagios<br>
> > > authenticate and then check the string?<br>> > ><br>> > > Thanks<br><br><br></blockquote></div><br></span></div></blockquote></div><br>