2015-04-21 11:37:47 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include("includes/graphs/common.inc.php");
|
|
|
|
|
2015-04-21 16:02:17 +01:00
|
|
|
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/siklu-wireless.rrd";
|
2015-04-21 11:37:47 +01:00
|
|
|
|
|
|
|
if (file_exists($rrdfilename)) {
|
|
|
|
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
|
|
|
|
$rrd_options .= " DEF:rfAverageRssi=".$rrdfilename.":rfAverageRssi:AVERAGE ";
|
|
|
|
$rrd_options .= " LINE1:rfAverageRssi#CC0000:'RSSI ' ";
|
|
|
|
$rrd_options .= " GPRINT:rfAverageRssi:LAST:%3.2lf ";
|
|
|
|
$rrd_options .= " GPRINT:rfAverageRssi:MIN:%3.2lf ";
|
|
|
|
$rrd_options .= " GPRINT:rfAverageRssi:MAX:%3.2lf\\\l ";
|
|
|
|
}
|
|
|
|
|