[Nagiosplug-devel] check_webapp plugin (very rough)

Barry Roberts manithree at crosswinds.net
Mon Sep 1 07:03:10 CEST 2003


Maybe I just couldn't figure out check_http, but there are 2 major
things I couldn't make it do:

First, I need to load several URL's in sequence in ONE check.  For
example, I have a test that logs in, loads up some data (through the
web ui), changes it, does a calculation, then tests the result.  It
hits 10 urls, most of which have expressions to match in the resulting
html.

Second, the session cookie has to be maintained between these url hits.

There's also another feature that I don't think check_http has that I
CAN do with mine but haven't yet, and that is a dependent URL.  The
purpose of that is to load all the images, js, css etc. required for a
page but including that in the performance info for the "main" url.  I
don't care how long each image, etc. load, just how long it takes to
load the whole page.

One minor thing I just remembered is that check_webapp can have a
"must match" expression and a "must not match" expression for each
URL.

I only took a brief look at the check_http source, but it didn't seem
to easily do everything I need to replace Sitecope.  But if it will I
would be happy to use it.

The final thing I need to implement is another feature that Sitescope
has.  I have to have the capability to parse enough of the returned
html to submit a form included in it.  I think I can do that pretty
easily in python.

If I've underestimated check_http, I apologize.  My plugin is pretty
rough, but it was only a couple of hours of python hacking and an hour
or so of testing.  Would have been quicker if I knew Python already.
And it is sure nice to be on nagios instead of expensive, flaky
Sitescope.

Thanks,
Barry Roberts

On Mon, Sep 01, 2003 at 08:55:43AM +0100, Voon, Ton wrote:
> Barry,
> 
> Looks interesting, but what extra functionality does this provide over
> check_http? We don't really want to introduce a new plugin if the check can
> be done through an existing plugin (long-term, I think Karl is thinking of
> changing check_http to use curl).
> 
> Ton




More information about the Devel mailing list