mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge remote-tracking branch 'upstream/master' into rrd-create-remote
This commit is contained in:
@@ -90,6 +90,10 @@ if ($_GET['bg']) {
|
||||
$rrd_options .= ' -c CANVAS#'.mres($_GET['bg']).' ';
|
||||
}
|
||||
|
||||
if ($_GET['font']) {
|
||||
$rrd_options .= ' -c FONT#'.mres($_GET['font']).' ';
|
||||
}
|
||||
|
||||
// $rrd_options .= " -c BACK#FFFFFF";
|
||||
if ($height < '99') {
|
||||
$rrd_options .= ' --only-graph';
|
||||
|
||||
@@ -85,15 +85,17 @@ $rrd_options .= ' VDEF:totin=inoctets,TOTAL';
|
||||
$rrd_options .= ' VDEF:totout=outoctets,TOTAL';
|
||||
$rrd_options .= ' VDEF:tot=octets,TOTAL';
|
||||
|
||||
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
|
||||
$rrd_options .= ' CDEF:d95thoutn=doutbits,-1,* VDEF:d95thoutn95=d95thoutn,95,PERCENT CDEF:d95thoutn95n=doutbits,doutbits,-,d95thoutn95,-1,*,+ VDEF:d95thout=d95thoutn95n,FIRST';
|
||||
|
||||
if ($format == 'octets' || $format == 'bytes') {
|
||||
$rrd_options .= ' VDEF:95thin=inoctets,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thout=outoctets,95,PERCENT';
|
||||
$units = 'Bps';
|
||||
$format = 'octets';
|
||||
}
|
||||
else {
|
||||
$rrd_options .= ' VDEF:95thin=inbits,95,PERCENT';
|
||||
$rrd_options .= ' VDEF:95thout=outbits,95,PERCENT';
|
||||
$units = 'bps';
|
||||
$format = 'bits';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user