From: Florian Forster Date: Wed, 23 Jan 2008 14:48:34 +0000 (+0100) Subject: Collectd::Unixsock: Added the `putnotif' method to dispatch notifications. X-Git-Tag: collectd-4.3.0beta0~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1aa92a83bda7c91c233e73d5a43709fee0a1fd1f;p=collectd.git Collectd::Unixsock: Added the `putnotif' method to dispatch notifications. --- diff --git a/bindings/perl/Collectd/Unixsock.pm b/bindings/perl/Collectd/Unixsock.pm index 3b8a91cf..d40f533f 100644 --- a/bindings/perl/Collectd/Unixsock.pm +++ b/bindings/perl/Collectd/Unixsock.pm @@ -2,7 +2,8 @@ package Collectd::Unixsock; =head1 NAME -Collectd::Unixsock - Abstraction layer for accessing the functionality by collectd's unixsock plugin. +Collectd::Unixsock - Abstraction layer for accessing the functionality by +collectd's unixsock plugin. =head1 SYNOPSIS @@ -29,6 +30,8 @@ programmers to interact with the daemon. use strict; use warnings; +#use constant { NOTIF_FAILURE => 1, NOTIF_WARNING => 2, NOTIF_OKAY => 4 }; + use Carp (qw(cluck confess)); use IO::Socket::UNIX; use Regexp::Common (qw(number)); @@ -190,7 +193,7 @@ sub getval return ($ret); } # getval -=item I<$obj>-EB (I<%identifier>, B