some fixes, and cleanups, also bits per second not bytes ;)

git-svn-id: http://www.observium.org/svn/observer/trunk@1502 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-28 15:57:32 +00:00
parent 29f5afa472
commit 6af535d5f6
7 changed files with 10 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ $rrd_options .= " VDEF:d95thout=doutbits,5,PERCENT";
$rrd_options .= " AREA:inbits_max#aDEB7B:";
$rrd_options .= " AREA:inbits#CDEB8B:";
$rrd_options .= " COMMENT:'BPS Now Ave Max 95th %\\n'";
$rrd_options .= " COMMENT:'bps Now Ave Max 95th %\\n'";
$rrd_options .= " LINE1.25:inbits#006600:'In '";
$rrd_options .= " GPRINT:inbits:LAST:%6.2lf%s";
$rrd_options .= " GPRINT:inbits:AVERAGE:%6.2lf%s";

View File

@@ -31,7 +31,7 @@ if($inverse) { $in = 'out'; $out = 'in'; } else { $in = 'in'; $out = 'out'; }
$rrd_options .= " LINE1.25:doutbits#".$colour_line_out.":";
} else {
$rrd_options .= " AREA:inbits#".$colour_area_in.":";
$rrd_options .= " COMMENT:BPS\ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " COMMENT:bps\ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " LINE1.25:inbits#".$colour_line_in.":In\ ";
$rrd_options .= " GPRINT:inbits:LAST:%6.2lf%s";
$rrd_options .= " GPRINT:inbits:AVERAGE:%6.2lf%s";

View File

@@ -68,7 +68,7 @@ if($_GET['legend']) { $legend = $_GET['legend']; }
$rrd_options .= " LINE1.25:doutbits_tot#000099:";
$rrd_options .= " LINE0.5:nothing#555555:";
} else {
$rrd_options .= " COMMENT:BPS\ \ \ \ \ \ \ \ \ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Min\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " COMMENT:bps\ \ \ \ \ \ \ \ \ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Min\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " AREA:inbits_tot#cdeb8b:Peering\ In\ ";
$rrd_options .= " GPRINT:inbitsb:LAST:%6.2lf%s";
$rrd_options .= " GPRINT:inbitsb:AVERAGE:%6.2lf%s";

View File

@@ -98,7 +98,7 @@ if($_GET['legend']) { $legend = $_GET['legend']; }
$rrd_options .= " LINE1:doutbitsb#000099:";
$rrd_options .= " LINE0.5:nothing#555555:";
} else {
$rrd_options .= " COMMENT:BPS\ \ \ \ \ \ \ \ \ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Min\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " COMMENT:bps\ \ \ \ \ \ \ \ \ \ \ \ Current\ \ \ Average\ \ \ \ \ \ Min\ \ \ \ \ \ Max\\\\n";
$rrd_options .= " AREA:inbits_tot#cdeb8b:ATM\ \ In\ ";
$rrd_options .= " GPRINT:inbits:LAST:%6.2lf%s";
$rrd_options .= " GPRINT:inbits:AVERAGE:%6.2lf%s";