X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=0f48ba58527faabc67fbd6f7bd1ca981bab8071d;hb=633c3966f770e4d46651a2fe219a18d8a9907a9f;hp=8cdf08bb3b6807229bb4a985a5b01f74771f8378;hpb=4e51eefd95e80f90eae602958713c9c630659ce7;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 8cdf08bb..38d790e9 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -1,16 +1,24 @@ +=encoding UTF-8 + =head1 NAME collectd-perl - Documentation of collectd's C =head1 SYNOPSIS - LoadPlugin perl + + Globals true + # ... IncludeDir "/path/to/perl/plugins" - BaseName "Collectd::Plugin" + BaseName "Collectd::Plugins" EnableDebugger "" LoadPlugin "FooBar" + + + Foo "Bar" + =head1 DESCRIPTION @@ -21,6 +29,12 @@ 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. +When loading the C, the B option should be enabled. +Else, the perl plugin will fail to load any Perl modules implemented in C, +which includes, amongst many others, the B module used by the plugin +itself. See the documentation of the B option in L +for details. + =head1 CONFIGURATION =over 4 @@ -34,7 +48,19 @@ 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. +provided for convenience to keep plugin names short. All Perl-based plugins +provided with the I distributions reside in the C +namespace. + +=item EB IE block + +This block may be used to pass on configuration settings to a Perl plugin. The +configuration is converted into a config-item data type which is passed to the +registered configuration callback. See below for details about the config-item +data type and how to register callbacks. + +The I identifies the callback. It is used literally and independent of +the B setting. =item B I[=I