librenms-librenms/html/includes/graphs/device/siklu_rfAverageRssi.inc.php

15 lines
584 B
PHP
Raw Normal View History

<?php
2015-07-13 20:10:26 +02:00
require 'includes/graphs/common.inc.php';
2015-07-13 20:10:26 +02:00
$rrdfilename = $config['rrd_dir'].'/'.$device['hostname'].'/siklu-wireless.rrd';
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 ';
$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 ';
}