From c89d32348b652e18a665346867b96d1610ae2932 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 17 Oct 2007 01:12:37 +0200 Subject: [PATCH] collectd-perl(5): Updated documentation. * moved configuration documentation from collectd.conf(5) to collectd-perl(5) * added documentation for the EnableDebugger configuration option * added documentation about how to write own plugins * added exports and examples section Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/collectd-perl.pod | 246 +++++++++++++++++++++++++++++++++++++++++++++++--- src/collectd.conf.pod | 21 +---- 2 files changed, 234 insertions(+), 33 deletions(-) diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 3e15b88c..16a985b9 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -4,29 +4,119 @@ collectd-perl - Documentation of collectd's C =head1 SYNOPSIS - # See collectd.conf(5) LoadPlugin perl # ... IncludeDir "/path/to/perl/plugins" BaseName "Collectd::Plugin" + EnableDebugger "" LoadPlugin "FooBar" =head1 DESCRIPTION -The C includes a Perl-interpreter in collectd and provides -Perl-equivalents of the plugin-functions. This makes it possible to write -plugins for collectd in Perl. This is a lot more efficient than executing a +The C embeds a Perl-interpreter into collectd and provides an +interface to collectd's plugin system. This makes it possible to write plugins +for collectd in Perl. This is a lot more efficient than executing a Perl-script every time you want to read a value with the C (see L) and provides a lot more functionality, too. Please note that this is still considered to be experimental and subject to change between minor releases. +=head1 CONFIGURATION + +=over 4 + +=item B I + +Loads the Perl plugin I. This does basically the same as B would +do in a Perl program. As a side effect, the first occurrence of this option +causes the Perl-interpreter to be initialized. + +=item B I + +Prepends IB<::> to all plugin names loaded after this option. This is +provided for convenience to keep plugin names short. + +=item B I[=I