summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb8df38)
raw | patch | inline | side by side (parent: fb8df38)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 9 Dec 2009 08:54:35 +0000 (09:54 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 9 Dec 2009 08:54:35 +0000 (09:54 +0100) |
bindings/perl/lib/Collectd/Plugins/OpenVZ.pm | patch | blob | history |
diff --git a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm
index 52754d1b71537e29da781182c21f9a7f11ab9c44..294415747c616f91f252ef30418c5fa583830336 100644 (file)
{
$v{'type'} = $if_instances[$key];
$v{'values'} = [ $counters[$key], $counters[$key + 8] ];
- plugin_dispatch_values($if_instances[$key], \%v);
+ plugin_dispatch_values(\%v);
}
}
{
$v{'type_instance'} = $cpu_instances[$key];
$v{'values'} = [ $counters[$key] ];
- plugin_dispatch_values('cpu', \%v);
+ plugin_dispatch_values(\%v);
}
}
$v{'type_instance'} = $val;
$v{'values'} = [ $parts[5] * ($parts[6] - $parts[7]), $parts[5] * $parts[7] ];
- plugin_dispatch_values('df', \%v);
+ plugin_dispatch_values(\%v);
}
#####################################################################
@parts = split(/ +/, `$vzctl exec $veid cat /proc/loadavg`);
$v{'values'} = [ $parts[0], $parts[1], $parts[2] ];
- plugin_dispatch_values('load', \%v);
+ plugin_dispatch_values(\%v);
#####################################################################
# processes
{
$v{'type_instance'} = $key;
$v{'values'} = [ $ps_states->{$key} ];
- plugin_dispatch_values('ps_state', \%v);
+ plugin_dispatch_values(\%v);
}
#####################################################################
@lines = split(/\n/, `$vzctl exec $veid w -h`);
$v{'values'} = [ scalar(@lines) ];
- plugin_dispatch_values('users', \%v);
+ plugin_dispatch_values(\%v);
}
return 1;