[Nagiosplug-devel] [ nagiosplug-New Plugins-811360 ] New Plugin: check_webapp

SourceForge.net noreply at sourceforge.net
Mon May 2 14:24:11 CEST 2005

New Plugins item #811360, was opened at 2003-09-23 14:02
Message generated for change (Comment added) made by shadowlore
You can respond by visiting: 

Category: Application monitor
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Barry Roberts (manithree)
Assigned to: Nobody/Anonymous (nobody)
Summary: New Plugin: check_webapp

Initial Comment:
This plugin does several things that I couldn't figure
out how to do with check_http.

It is intended for checking web applications and allow
logging in, etc.

It uses a text file with URL's, and text to match or
not match as described in the beginning of the source.

It can hit multiple URL's and save/send cookies.

It currently spawns grep and curl.  I would like to
change it to use re and pyCurl. 

It's only a pass/fail thing now.  No warning, and
timeouts are not user-specifiable.


Comment By: Bill Anderson (shadowlore)
Date: 2005-05-02 15:22

Logged In: YES 

If there is any interest I'd be happy to rewrite this. The
code should use the standard library's urllib/urllib2 for
retreiving URLs, as opposed to calling an external binary.
Newer python also includes cookie support on the client side.

I've already written a test suite for mailman testing, so
refactoring the code to do somethign less conplex would not
be difficult or time intensive.

So if anyone wants, I can rewrite this. It can use the same
command line options if backward compatibility is desired
but I have some options in mind to make it better.


Comment By: Terry Davis (td3201)
Date: 2003-10-30 12:35

Logged In: YES 

I have something quite similar written in perl.  I utilize
wt or HTTP::WebTest to log into sites and run a bunch of
tests to determine whether it is up or not.  The cookies
part of your code is interesting.  My plugin too is simply
pass/fail.  Therefore, it is either OK or CRITICAL.  I don't
know anything about python but you might be able to cut down
some of the code by utilizing the wt system binary versus
curl and grep.  Let me know how I can help if you need any.


You can respond by visiting: 

More information about the Devel mailing list