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

Peter Holik peter at holik.at
Mon Feb 22 11:07:18 CET 2010


>> 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
>
> While this is a sensible thing to do given the current code / behavior, I'd rather like to teach
collection3 to display different hosts side-by- side -- just like it was the case in
collection.cgi.
>
> What do you think about that? Would you like giving that a try?

The only thing i like to have is to be able to compare between different hosts.

cu Peter






More information about the collectd mailing list