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
|
|
|
|
2015-07-13 20:10:26 +02: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:'db Now Min Max\\n'";
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' DEF:rfAverageCinr='.$rrdfilename.':rfAverageCinr:AVERAGE ';
|
2015-04-21 11:37:47 +01:00
|
|
|
$rrd_options .= " LINE1:rfAverageCinr#CC0000:'CINR ' ";
|
2015-07-13 20:10:26 +02:00
|
|
|
$rrd_options .= ' GPRINT:rfAverageCinr:LAST:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:rfAverageCinr:MIN:%3.2lf ';
|
|
|
|
$rrd_options .= ' GPRINT:rfAverageCinr:MAX:%3.2lf\\\l ';
|
2015-04-21 11:37:47 +01:00
|
|
|
}
|