Hi all, I´ve found a bug at html/includes/graphs/generic_multi_line.inc.php with wrong order of data shown as Avg, Min, Max at graph.
Here is the fix
--- /opt/observium-wks/html/includes/graphs/generic_multi_line.inc.php 2013-03-12 15:44:22.000000000 -0300 +++ html/includes/graphs/generic_multi_line.inc.php 2013-04-03 18:03:27.000000000 -0400 @@ -71,9 +71,9 @@ foreach ($rrd_list as $i => $rrd) }
if(in_array("lst", $data_show)) { $rrd_optionsb .= " GPRINT:".$id.":LAST:%6.1lf%s"; } + if(in_array("avg", $data_show)) { $rrd_optionsb .= " GPRINT:".$id.":AVERAGE:%6.1lf%s"; } if(in_array("min", $data_show)) { $rrd_optionsb .= " GPRINT:".$id."min:MIN:%6.1lf%s"; } if(in_array("max", $data_show)) { $rrd_optionsb .= " GPRINT:".$id."max:MAX:%6.1lf%s"; } - if(in_array("avg", $data_show)) { $rrd_optionsb .= " GPRINT:".$id.":AVERAGE:%6.1lf%s"; }
$rrd_optionsb .= " COMMENT:'\l'"; $iter++;
And the result: Before
After
Could someone help commiting this?
Regards, Edgar