Plugin:Perl
From collectd Wiki
| Perl plugin | |
|---|---|
| Type: | binding |
| Callbacks: | config, flush, init, log, notification, read, shutdown, write |
| Status: | supported |
| First version: | 4.0 |
| Copyright: | 2007–2009 Sebastian Harl |
| License: | GPLv2 |
| Manpage: | collectd-perl(5) |
| List of Plugins | |
Contents |
[edit] Description
The Perl plugin embeds a Perl interpreter into collectd and exposes the application programming interface (API) to Perl-scripts. This allows to write own plugins in the popular scripting language, which are then loaded and executed by the daemon without the need to start a new process and interpreter every few seconds. Perl-modules written for the Perl plugin are therefore more powerful and efficient than scripts executed by the Exec plugin.
This plugin is a generic plugin, i.e. it cannot work without configuration, because there is no reasonable default behavior. Please read the Plugin perl section of the collectd.conf(5) manual page for an in-depth description of the plugin's configuration. Most aspects of the Perl plugin are documented in the collectd-perl(5) manual page.
[edit] Synopsis
LoadPlugin perl
# ...
<Plugin perl>
IncludeDir "/path/to/perl/plugins"
BaseName "Collectd::Plugins"
EnableDebugger ""
LoadPlugin "FooBar"
<Plugin FooBar>
Foo "Bar"
</Plugin>
</Plugin>
[edit] Dependencies
-
libperl

