Code

perl plugin: Added support to dispatch notifications to Perl plugins.
authorSebastian Harl <sh@tokkee.org>
Mon, 28 Jan 2008 11:20:29 +0000 (12:20 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 4 Feb 2008 16:40:23 +0000 (17:40 +0100)
commit994a59d82c39b8cd5718be7574f11bd184e88b6e
tree96de8cacd2b1acfb9f0aadd9f526d2f53b5dfb57
parente5c14a824f08a07f0cd922634a6c8900e8a1005a
perl plugin: Added support to dispatch notifications to Perl plugins.

Perl plugin may now register a callback of type Collectd::TYPE_NOTIF which
accepts a single hash argument with the following members:

  severity
  time
  message
  host
  plugin
  plugin_instance
  type
  type_instance

Severity may be any of the following values (exported by the "notif" tag):

  Collectd::NOTIF_FAILURE
  Collectd::NOTIF_WARNING
  Collectd::NOTIF_OKAY

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