![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
Hi,
this issue already fixed in Pro Edition since r7545.
On 10.02.16 12:57, Dirk-Willem van Gulik wrote:
As discussed back in June — http://comments.gmane.org/gmane.network.observium.general/10286 - this issue also affects FreeBSD.
Mathieu Arnold contributed a fix (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207057) which, together with a few other small patches & cleanups has been merged into the FreeBSD ports collection a few hours ago.
May be an idea to apply this patch (below) to HEAD; I suspect there is a similar issue in generic_multi_data_separated.
Dw
diff --git a/net-mgmt/observium/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php b/net-mgmt/observium/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php new file mode 100644 index 0000000..b6054c8 --- /dev/null +++ b/net-mgmt/observium/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php @@ -0,0 +1,27 @@ +--- html/includes/graphs/generic_multi_bits_separated.inc.php.orig 2016-01-15 08:37:56 UTC ++++ html/includes/graphs/generic_multi_bits_separated.inc.php +@@ -76,13 +76,13 @@ foreach ($rrd_list as $rrd)
- $rrd_options .= " VDEF:totout".$i."=outB".$i.",TOTAL";
- $rrd_options .= " VDEF:tot".$i."=octets".$i.",TOTAL";
+- if ($i) { $stack="STACK"; } ++ if ($i) { $stack=":STACK"; }
- if ($vars['line_graph'])
- {
$rrd_options .= " LINE1.25:inB".$i."#" . $colour_in . ":'" . $descr . "'";
- } else {
+- $rrd_options .= " AREA:inB".$i."#" . $colour_in . ":'" . $descr . "':$stack"; ++ $rrd_options .= " AREA:inB".$i."#" . $colour_in . ":'" . $descr . "'$stack";
- }
- $rrd_options .= " GPRINT:inB".$i.":LAST:%6.2lf%s$units";
- $rrd_options .= " GPRINT:inB".$i.":AVERAGE:%6.2lf%s$units";
+@@ -97,7 +97,7 @@ foreach ($rrd_list as $rrd)
$rrd_options .= " 'LINE1.25:outB".$i."_neg#" . $colour_out . ":" . $descr_out . "'";
- } else {
$rrd_options .= " 'HRULE:0#" . $colour_out.":".$descr_out."'";
+- $rrd_optionsb .= " 'AREA:outB".$i."_neg#" . $colour_out . "::$stack'"; ++ $rrd_optionsb .= " 'AREA:outB".$i."_neg#" . $colour_out . ":$stack'";
- }
- $rrd_options .= " GPRINT:outB".$i.":LAST:%6.2lf%s$units";
- $rrd_options .= " GPRINT:outB".$i.":AVERAGE:%6.2lf%s$units”;
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium