Checking IIS sites when there is a default "outage" page

C. Bensend benny at bennyvision.com
Thu Jan 7 03:24:12 CET 2010


>>   Any thoughts on how to monitor an IIS site requiring NTLM
>> authentication when a default page is configured for an "out of
>> service" page?
>
> I'm not aware of anything out-of-the-box but I do know of one that's close
> (but haven't used it). I also know that curl supports NTLM so if that's
> used as the basis of a plugin, you're a good way there. This PHP based
> plugin appears to have the features of check_http you need, but without
> the NTLM auth --
>
> http://exchange.nagios.org/directory/Plugins/Websites%2C-Forms-and-Transactions/CURL-check-script/details
>
> Since it's PHP and PHP Curl is pretty well documented, I think that it
> wouldn't be too difficult to add in the authentication bit (two lines in
> the curl_setopt() section I believe, if hard-coded). The two options I
> think you'd need are --
>
> http://www.php.net/manual/en/function.curl-setopt.php
>
> CURLOPT_USERPWD 'username:password'
> CURLOPT_HTTPAUTH 'CURLAUTH_NTLM'
>
> It may be more complicated than that but it's where I'd start if I were
> doing it.

Hmmmm...  Yeah, that might be a good start.  If it turns out to be
a pain to modify the existing plugins I'm looking at, I'll have to
write one I guess.

Thanks for the links, Marc, it is much appreciated.

(hints/tips/examples/pointers on webinject tests still very much
appreciated, too - I have some web apps to log into and test)

Benny


-- 
"It's not all about getting up and putting four slices of kickass
in a two slice toaster."         -- ark86, on Fazed.net



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list