From c17512f8595c9514128e2f1fa6c336402ff20221 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 20 May 2007 17:06:56 +0200 Subject: [PATCH] README.Debian: Added notes about MyPlugin.pm. --- debian/README.Debian | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/debian/README.Debian b/debian/README.Debian index 6fbb479..f7acbe1 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -24,7 +24,7 @@ Building your own plugins: - If you want to contribute plugins to the official distribution you should read http://collectd.org/dev-info.shtml. -- If you want to build plugins for your personal use only simply install the +- If you want to build C plugins for your personal use only simply install the collectd-dev package and use /usr/share/doc/collectd-dev/examples/myplugin.c as a starting point (Note: This is already a working example, though it does not collect any useful data). @@ -40,3 +40,21 @@ Building your own plugins: Restart collectd and you're done. +- The collectd-dev package also provides an example Perl plugin that can be + used as a starting point for your own development. It can be found in + /usr/share/doc/collectd-dev/examples/MyPlugin.pm (Note: This is already a + working example, though it does not collect any usefull data). + + To enable the plugin, copy it to a place where Perl can find it (i.e. a + subdirectory named "Collectd/Plugin" of a directory listed in @INC) and add + the following line to the perl plugin section in your config file: + + LoadPlugin "Collectd::Plugin::MyPlugin" + + or + + BaseName "Collectd::Plugin" + LoadPlugin MyPlugin + + Restart collectd and you're done. + -- 2.30.2