perl plugin: Added "<Plugin>" configuration block.
authorSebastian Harl <sh@tokkee.org>
Tue, 26 Aug 2008 09:56:31 +0000 (11:56 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 26 Aug 2008 17:01:10 +0000 (19:01 +0200)
commiteade01b4c26d1bed1c1d2b5b86c1807334dcd197
tree3b1e3bc4e1d4215a66308be5b91372c76fc6a57a
parentfff2b3d4629a871297984219cf5d9c5437a0fd89
perl plugin: Added "<Plugin>" configuration block.

Similar to the global "<Plugin>" blocks this may be used to configure Perl
plugins. The oconfig_item_t object is converted to a Perl hash which will be
passed on to the registered configuration callback. A configuration
callback is registered using the TYPE_CONFIG identifier.

The Perl representation of the oconfig_item_t object looks like this:

  {
      'key'      => '<key>',
      'values'   => [ '<val1>', '<val2>', ... ],
      'children' => [ { ... }, { ... }, ... ]
  }

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
bindings/perl/Collectd.pm
src/perl.c