summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec25cce)
raw | patch | inline | side by side (parent: ec25cce)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 9 Dec 2009 07:53:24 +0000 (08:53 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 9 Dec 2009 07:53:24 +0000 (08:53 +0100) |
`type' is now part of the value list.
bindings/perl/lib/Collectd/Plugins/Monitorus.pm | patch | blob | history |
diff --git a/bindings/perl/lib/Collectd/Plugins/Monitorus.pm b/bindings/perl/lib/Collectd/Plugins/Monitorus.pm
index 1f6c9dac89c4febd8d9d40de146e071c002a5f16..0fee138a4aa4b2adec851b7afdb40d27491af17b 100644 (file)
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<NUM_OF_INTERVALS) { # e.g. 180 * 10 secs / 60 seconds/min = 30 minutes
$vl->{'values'} = [ $prev_value ];
- plugin_dispatch_values ('gauge', $vl);
+ plugin_dispatch_values ($vl);
return 1;
}
$prev_value = $value;
$vl->{'values'} = [ $value ];
- plugin_dispatch_values ('gauge', $vl);
+ plugin_dispatch_values ($vl);
return 1;
}