X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-perl.pod;h=c3fcb1088319142f44f88c8b5378c050f2973993;hb=a898c17330d9a2039bcdb8f7e6dbedba516a6cd8;hp=4a01d1465b90a9e37986416f4a49b88649b0a5e8;hpb=4fb5d4b471e3f6a24d7cd36272e48e57bcb2c68f;p=collectd.git diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod index 4a01d146..6b44722c 100644 --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@ -4,13 +4,19 @@ 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 +27,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 +46,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