add rrdcached support to collectd

git-svn-id: http://www.observium.org/svn/observer/trunk@1601 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-01 15:31:39 +00:00
parent 3cef180f84
commit 5d2583a72e
4 changed files with 20 additions and 19 deletions

View File

@@ -773,10 +773,10 @@ function collectd_draw_meta_line(&$opts, &$sources) {
$cmd[] = 'LINE1:'.$inst_name.'_avg#'.$line_color->as_string().':'.$legend;
if (!(isset($opts['tinylegend']) && $opts['tinylegend'])) {
$cmd[] = 'GPRINT:'.$inst_name.'_min:MIN:'.$number_format.' Min,';
$cmd[] = 'GPRINT:'.$inst_name.'_avg:AVERAGE:'.$number_format.' Avg,';
$cmd[] = 'GPRINT:'.$inst_name.'_max:MAX:'.$number_format.' Max,';
$cmd[] = 'GPRINT:'.$inst_name.'_avg:LAST:'.$number_format.' Last\\l';
$cmd[] = 'GPRINT:'.$inst_name.'_min:MIN:'.$number_format.'';
$cmd[] = 'GPRINT:'.$inst_name.'_avg:AVERAGE:'.$number_format.'';
$cmd[] = 'GPRINT:'.$inst_name.'_max:MAX:'.$number_format.'';
$cmd[] = 'GPRINT:'.$inst_name.'_avg:LAST:'.$number_format.'\\l';
}
}