NAME

Watchdog::MysqlService - Monitor Mysql service

SYNOPSIS

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

DESCRIPTION

Watchdog::MysqlService is an extension for monitoring a Mysql server running on a Unix host.

CLASS METHODS

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

Returns a new Watchdog::MysqlService object. $name is a string which will identify the service to a human (default is 'mysql'). $host is the hostname which is running the service (default is 'localhost'). $port is the port on which the service listens (default is 3306). $db is a database with no access control (default is 'test').

OBJECT METHODS

id()

Return a string describing the Mysql service.

is_alive()

Returns true if the mysql server can be 'pinged' or false if it can't.

SEE ALSO

Watchdog::Service

AUTHOR

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.