X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=8cdf08bb3b6807229bb4a985a5b01f74771f8378;hb=d5ad844588fcbcdcdd36a889c94ac33d36c1d52c;hp=3e15b88c60bbceac19d219404cfec1cb27c81e67;hpb=bd66a09b35da21dcb405650ae4587bf2ca811438;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 3e15b88c..8cdf08bb 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -4,29 +4,139 @@ 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