NAME

Watchdog::HTTP - Test status of HTTP service

SYNOPSIS

  use Watchdog::HTTP;
  $h = new Watchdog::HTTP($name,$host,$port,$file);
  print $h->id, $h->is_alive ? ' is alive' : ' is dead', "\n";

DESCRIPTION

Watchdog::HTTP is an extension for monitoring an HTTP server.

CLASS METHODS

new($name,$host,$port,$file)

Returns a new Watchdog::HTTP object. $name is a string which will identify the service to a human (default is 'httpd'). $host is the hostname which is running the service (default is 'localhost'). $port is the port on which the service listens (default is 80).

OBJECT METHODS

is_alive()

Returns true if an HTTP GET method succeeds for the URL http://$host:$port/$file or false if it doesn't.

SEE ALSO

Watchdog::Base

AUTHOR

new Maintainer: Clemens Gesell <clemens.gesell@vegatron.org>

Paul Sharpe <paul@miraclefish.com>

COPYRIGHT

Copyright (c) 1998 Paul Sharpe. England. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.