NAME

Xymon::Plugin::Server::Dispatch - Xymon plugin dispatcher

SYNOPSIS

use Xymon::Plugin::Server::Dispatch;
use YourMonitor;

my $dispatch = Xymon::Plugin::Server::Dispatch
               ->new('test' => 'YourMonitor');
$dispatch->run;

# You can this script into
#  tasks.cfg (Xymon 4.3)
#  hobbitlaunch.cfg (Xymon 4.2)

SUBROUTINES/METHODS

new(testName1 => ModuleName1, ...)

Create dispatch object for tests and modules.

If testName has wildcard character(like http:*), $test will be ARRAYREF when run method is called.

SUBROUTINES/METHODS

run

For every host listed in bb-hosts(Xymon 4.2) or hosts.cfg (Xymon 4.3), following operation is executed.

my $module = YourMonitor->new($host, $test);
$module->run;