Feature #5307 ยป quality-log-scale.diff
| usr/local/www/status_rrd_graph_img.php | ||
|---|---|---|
|
}
|
||
|
elseif((strstr($curdatabase, "-quality.rrd")) && (file_exists("$rrddbpath$curdatabase"))) {
|
||
|
/* make a link quality graphcmd, we only have WAN for now, others too follow */
|
||
|
$multiplier = 1;
|
||
|
$AREA = "LINE1";
|
||
|
$graphcmd = "$rrdtool graph $rrdtmppath$curdatabase-$curgraph.png \\
|
||
|
--start $start --end $end --step $step \\
|
||
|
--logarithmic --units=si \\
|
||
|
--title \"" . php_uname('n') . " - {$prettydb} - {$hperiod} - {$havg} average\" \\
|
||
|
--color SHADEA#eeeeee --color SHADEB#eeeeee \\
|
||
|
--vertical-label \"ms / %\" \\
|
||
|
--height 200 --width 620 \\
|
||
|
--lower-limit 0 \\
|
||
|
--lower-limit 0.001 \\
|
||
|
DEF:delayraw=$rrddbpath$curdatabase:delay:AVERAGE:step=$step \\
|
||
|
DEF:loss=$rrddbpath$curdatabase:loss:AVERAGE:step=$step \\
|
||
|
\"CDEF:delay=delayraw,1000,*\" \\
|
||