summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c9f69a)
raw | patch | inline | side by side (parent: 6c9f69a)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 3 Jun 2007 13:32:55 +0000 (15:32 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 3 Jun 2007 16:15:24 +0000 (18:15 +0200) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
contrib/PerlLib/Collectd.pm | [new file with mode: 0644] | patch | blob |
diff --git a/contrib/PerlLib/Collectd.pm b/contrib/PerlLib/Collectd.pm
--- /dev/null
@@ -0,0 +1,52 @@
+# collectd - Collectd.pm
+# Copyright (C) 2007 Sebastian Harl
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; only version 2 of the License is applicable.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# Author:
+# Sebastian Harl <sh at tokkee.org>
+
+package Collectd;
+
+use strict;
+use warnings;
+
+require Exporter;
+
+our @ISA = qw( Exporter );
+
+our %EXPORT_TAGS = (
+ 'funcs' => [ qw( plugin_register plugin_unregister
+ plugin_dispatch_values plugin_log ) ],
+ 'types' => [ qw( TYPE_INIT TYPE_READ TYPE_WRITE TYPE_SHUTDOWN TYPE_LOG
+ TYPE_DATASET ) ],
+ 'ds_types' => [ qw( DS_TYPE_COUNTER DS_TYPE_GAUGE ) ],
+ 'log' => [ qw( LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG ) ],
+);
+
+{
+ my %seen;
+
+ push @{$EXPORT_TAGS{'all'}}, grep {! $seen{$_}++ } @{$EXPORT_TAGS{$_}}
+ foreach keys %EXPORT_TAGS;
+}
+
+Exporter::export_ok_tags('all');
+
+bootstrap Collectd "4.0.0-rc10";
+
+1;
+
+# vim: set sw=4 ts=4 tw=78 noexpandtab :
+