2015-04-21 11:37:47 +01:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2015-04-21 11:37:47 +01:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrdfilename = rrd_name($device['hostname'], 'siklu-wireless');
|
2015-04-21 11:37:47 +01:00
|
|
|
|
|
|
|
if (file_exists($rrdfilename)) {
|
|
|
|
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' DEF:rfAverageRssi='.$rrdfilename.':rfAverageRssi:AVERAGE ';
|
2015-04-21 11:37:47 +01:00
|
|
|
$rrd_options .= " LINE1:rfAverageRssi#CC0000:'RSSI ' ";
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' GPRINT:rfAverageRssi:LAST:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:rfAverageRssi:MIN:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:rfAverageRssi:MAX:%3.2lf\\\l ';
|
2015-04-21 11:37:47 +01:00
|
|
|
}
|