Difference between revisions of "Plugin:Perl"

From collectd Wiki
Jump to: navigation, search
(Added the "Infobox Plugin" template.)
(+Category:Development)
Line 34: Line 34:
  
 
[[Category:Plugins]]
 
[[Category:Plugins]]
 +
[[Category:Development]]

Revision as of 15:15, 15 July 2009

Perl plugin
Type: binding
Status: supported
First version: 4.0
Copyright: 2007–2009 Sebastian Harl
License: GPLv2
Manpage: collectd-perl(5)
List of Plugins

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.

Synopsis

LoadPlugin perl
# ...
<Plugin perl>
  IncludeDir "/path/to/perl/plugins"
  BaseName "Collectd::Plugin"
  EnableDebugger ""
  LoadPlugin "FooBar"

  <Plugin FooBar> 
    Foo "Bar"
  </Plugin>
</Plugin>

Dependencies

  • libperl