[collectd] [PATCH] collection3, PsCputime - "no instance" is showing instead of process name

Giuliano giuliano at 108.bz
Fri Feb 11 22:37:07 CET 2011


Hi everybody,

 as per subject, here follows a trivial patch that solved the issue for me.

ciao,
--
Giuliano

diff -c PsCputime.pm.orig PsCputime.pm
*** PsCputime.pm.orig   Thu Feb 10 15:10:27 2011
--- PsCputime.pm        Thu Feb 10 15:16:48 2011
***************
*** 58,64 ****
   my $faded_blue = get_faded_color ('0000ff');
   my $faded_red = get_faded_color ('ff0000');

!   return (['-t', $obj->getTitle (), @{$obj->{'rrd_opts'}},
     "DEF:user_min_raw=${filename}:user:MIN",
     "DEF:user_avg_raw=${filename}:user:AVERAGE",
     "DEF:user_max_raw=${filename}:user:MAX",
--- 58,64 ----
   my $faded_blue = get_faded_color ('0000ff');
   my $faded_red = get_faded_color ('ff0000');

!   return (['-t', $obj->getTitle ($ident), @{$obj->{'rrd_opts'}},
     "DEF:user_min_raw=${filename}:user:MIN",
     "DEF:user_avg_raw=${filename}:user:AVERAGE",
     "DEF:user_max_raw=${filename}:user:MAX",



More information about the collectd mailing list