From fb8df383f19a3c6c277c68badd382660b8fbd340 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 9 Dec 2009 08:53:24 +0100 Subject: [PATCH] monitorus plugin: Updated for the new API. `type' is now part of the value list. --- bindings/perl/lib/Collectd/Plugins/Monitorus.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/perl/lib/Collectd/Plugins/Monitorus.pm b/bindings/perl/lib/Collectd/Plugins/Monitorus.pm index 1f6c9dac..0fee138a 100644 --- a/bindings/perl/lib/Collectd/Plugins/Monitorus.pm +++ b/bindings/perl/lib/Collectd/Plugins/Monitorus.pm @@ -39,12 +39,12 @@ plugin_register (TYPE_READ, "monitorus", "monitorus_read"); sub monitorus_read { - my $vl = { plugin => 'monitorus' }; + my $vl = { plugin => 'monitorus', type => 'gauge' }; # Only retrieve a value occasionally in order to not overload mon.itor.us if (++$intervalcnt{'values'} = [ $prev_value ]; - plugin_dispatch_values ('gauge', $vl); + plugin_dispatch_values ($vl); return 1; } @@ -96,7 +96,7 @@ sub monitorus_read $prev_value = $value; $vl->{'values'} = [ $value ]; - plugin_dispatch_values ('gauge', $vl); + plugin_dispatch_values ($vl); return 1; } -- 2.11.0