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

15 lines
567 B
PHP
Raw Normal View History

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