|
Net::Nsca - a perl way to send status checks to NetSaint, locally and remotely |
Net::Nsca - a perl way to send status checks to NetSaint, locally and remotely
Net::Nsca::local_message($message [, $log_file]);
Net::Nsca::send_message($message, $remote_host [, $config_file [, $remote_port ]]);
($password, $encryption_method) = Net::Nsca::read_config( [ $configfile ]);
This module provides a simple API to allow perl programs to send checks to the Netsaint server that is monitoring them. This server may be local or remote. The API has two main methods and one utility method:
The $message referred to loks like this, a simple hashref:
my $message = {
host_name => 'www',
svc_description => 'database',
return_code => '0',
plugin_output => 'Database is OK',
};
See the LICENSE file. Parts are based on work by Ethan Galstad, the rest is mine.
P Kent, Started Nov 2001 $Id: Nsca.pm,v 1.6 2001/12/14 01:42:11 piers Exp $
|
Net::Nsca - a perl way to send status checks to NetSaint, locally and remotely |