mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
17 lines
655 B
PHP
17 lines
655 B
PHP
<?php
|
|
|
|
require 'includes/graphs/common.inc.php';
|
|
|
|
$rrdfilename = rrd_name($device['hostname'], 'saf-modem-radio');
|
|
|
|
if (rrdtool_check_rrd_exists($rrdfilename)) {
|
|
$rrd_options .= ' COMMENT:" Now Min Max\r" ';
|
|
$rrd_options .= ' DEF:modemRadialMSE='.$rrdfilename.':modemRadialMSE:AVERAGE ';
|
|
$rrd_options .= ' CDEF:dividedMSE=modemRadialMSE,10,/ ';
|
|
$rrd_options .= ' LINE1:dividedMSE#CC0000:"Radial MSE\l" ';
|
|
$rrd_options .= ' COMMENT:\u ';
|
|
$rrd_options .= ' GPRINT:dividedMSE:LAST:"%3.2lf dB" ';
|
|
$rrd_options .= ' GPRINT:dividedMSE:MIN:"%3.2lf dB" ';
|
|
$rrd_options .= ' GPRINT:dividedMSE:MAX:"%3.2lf dB\r" ';
|
|
}
|