[collectd] collection3 see all selected hosts for memory and other GenericStacked

Peter Holik peter at holik.at
Sat Feb 20 14:10:49 CET 2010


Hi!

Selecting more than one host for load i see a load picure for every host,
but for example memory i see only on picture (the first host).

I fixed this by patching group_files_by_plugin_instance ths way:

--- Common.pm_orig      2010-02-20 14:04:27.000000000 +0100
+++ Common.pm   2010-02-20 14:01:21.000000000 +0100
@@ -106,7 +106,7 @@
   for (my $i = 0; $i < @files; $i++)
   {
     my $file = $files[$i];
-    my $key = $file->{'plugin_instance'} || '';
+    my $key = $file->{'hostname'}.$file->{'plugin_instance'} || '';

     $data->{$key} ||= [];
     push (@{$data->{$key}}, $file);

maybe for this purpose the name should be changed to
group_files_by_hostname_plugin_instance

cu Peter




More information about the collectd mailing list