mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Using PERCENTNAN instead of PERCENT for 95th percentile line
This modifies the existing lines in positive range a bit, but also enables drawing lines in the negative range when data is missing there.
This commit is contained in:
@@ -109,9 +109,9 @@ if ($_GET['previous'] == 'yes') {
|
||||
$rrd_options .= ' CDEF:outbitsX=outBX,8,*';
|
||||
$rrd_options .= ' CDEF:bitsX=inbitsX,outbitsX,+';
|
||||
$rrd_options .= ' CDEF:doutbitsX=doutBX,8,*';
|
||||
$rrd_options .= ' VDEF:95thinX=inbitsX,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thoutX=outbitsX,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:d95thoutX=doutbitsX,5,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thinX=inbitsX,95,PERCENTNAN';
|
||||
$rrd_options .= ' VDEF:95thoutX=outbitsX,95,PERCENTNAN';
|
||||
$rrd_options .= ' VDEF:d95thoutX=doutbitsX,5,PERCENTNAN';
|
||||
}
|
||||
|
||||
if ($_GET['previous'] == 'yes') {
|
||||
@@ -130,9 +130,9 @@ if (!$args['nototal']) {
|
||||
$rrd_options .= ' CDEF:outbits=outB,8,*';
|
||||
$rrd_options .= ' CDEF:bits=inbits,outbits,+';
|
||||
$rrd_options .= ' CDEF:doutbits=doutB,8,*';
|
||||
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:d95thout=doutbits,5,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENTNAN';
|
||||
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENTNAN';
|
||||
$rrd_options .= ' VDEF:d95thout=doutbits,5,PERCENTNAN';
|
||||
$rrd_options .= ' VDEF:totin=inB,TOTAL';
|
||||
$rrd_options .= ' VDEF:avein=inbits,AVERAGE';
|
||||
$rrd_options .= ' VDEF:totout=outB,TOTAL';
|
||||
|
||||
Reference in New Issue
Block a user