2015-04-03 18:59:58 +01:00
|
|
|
<?php
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/common.inc.php';
|
2015-04-03 18:59:58 +01:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' -l 0 -E ';
|
2015-04-03 18:59:58 +01:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrdfilename = rrd_name($device['hostname'], 'ubnt-airfiber-mib');
|
2015-04-03 18:59:58 +01:00
|
|
|
|
2017-06-05 14:49:04 -07:00
|
|
|
if (rrdtool_check_rrd_exists($rrdfilename)) {
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
|
|
|
|
$rrd_options .= ' DEF:txPower='.$rrdfilename.':txPower:AVERAGE ';
|
|
|
|
$rrd_options .= " LINE1:txPower#CC0000:'Tx Power ' ";
|
|
|
|
$rrd_options .= ' GPRINT:txPower:LAST:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:txPower:MIN:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:txPower:MAX:%3.2lf\\\l ';
|
2015-04-03 18:59:58 +01:00
|
|
|
}
|