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

gmartin gmartin at gmartin.org
Sat Jan 9 16:56:22 CET 2010


Benny, you might also take a look at Webinject.pl  It allows you to script a
series of website interactions and watch for patterns in the response.
There is a nagios mode and I believe you can pass credentials.


\\Greg



On Thu, Jan 7, 2010 at 7:12 PM, C. Bensend <benny at bennyvision.com> wrote:

>
> >>   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.
>
> A quick followup...
>
> I decided to take the requirements a little more literally, and
> build a test that checks to see if their IIS web sites are
> up and running or if they're stopped/paused/whatever.  So, here
> it is:
>
>
> http://exchange.nagios.org/directory/Plugins/Web-Servers/IIS/check_iis_site/details
>
> It's a VBscript that I run via NSClient's NRPE handler, and it
> checks the status of any IIS web site I tell it to.
>
> Released under BSD license, maybe someone else will find it
> useful.  :)
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100109/9d023cd4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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 
-------------- next part --------------
_______________________________________________
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