monitoring web transactions
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Oct 21 03:27:31 CEST 2004
Dear Ladies and Gentlemen,
> On Wed, Oct 20, 2004 at 09:36:56AM -0400, Robert.Lattanzi at fitchratings.com =
> wrote:
> > series of web transactions, such as logging in to a protected page and th=
> en
> > checking for a string (similar to check_httpd) on the resulting page. It
> > doesn't look like Nagios can do this "natively"- please correct me if I'm
> > wrong. Thanks, Robert
> I don't know of any plugin that can do this. You'd probably have
> better luck with something like=20
> AWBot http://freshmeat.net/projects/awbot/
> PasTMon http://freshmeat.net/projects/pastmon/=20
> or TestMaker http://freshmeat.net/projects/testmaker/
> and having them send a notification to Nagios about their
> results.
>
> Note: I haven't actually used these programs, but it is
> something I've been looking at doing someday.
>
You may be better off rolling your own completely since AwBot requires a
two (2) phases (processe each URL and then analyse the result file) and
PasTmon is a passive monitor.
OTOH you could try WWW::Mechanize from CPAN
( http://search.cpan.org/dist/WWW-Mechanize/ ) , or lynx or LWP from
within a Perl program to step through the list of URLs and match the
HTML response against the patterns you provide.
Probably the only code-free ways of doing this are commercial: site
checking services or products like Rational Robot.
With CPAN modules like WWW::Mechanize very much can be done with very
little code on your part.
Here's what it looks like
$mech->get( "http://my.site.com" );
die "Can't even get the home page: ", $mech->response->status_line
unless $mech->success;
$mech->follow_link( "foo" );
die "Foo link failed: ", $mech->response->status_line
unless $mech->success;
and a page of example programs, none that for Nagios as yet.
http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize/Examples.pod
Yours sincerely.
--
Stanley Hopcroft
Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189 Fax: (02) 6281 1353
PO Box 200 Woden ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041021/04aa72ab/attachment.txt>
More information about the Users
mailing list