From 1aa92a83bda7c91c233e73d5a43709fee0a1fd1f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 23 Jan 2008 15:48:34 +0100 Subject: [PATCH] Collectd::Unixsock: Added the `putnotif' method to dispatch notifications. --- bindings/perl/Collectd/Unixsock.pm | 99 +++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 2 deletions(-) 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