commit version 22.12.12447
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%3.0lfCFM";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%3.0lfCFM\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Air flow sensor measured in CFM.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " AREA:sensor_max#c5c5c5";
|
||||
$rrd_options .= " AREA:sensor_min#ffffffff";
|
||||
|
||||
#$rrd_options .= " AREA:sensor#FFFF99";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lfW";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lfW\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Apparent power sensor measured in voltampere.';
|
||||
|
||||
// EOF
|
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc3300";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "ppm";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
//if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
//if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Concentration in ppm.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " AREA:sensor_max#c5c5c5";
|
||||
$rrd_options .= " AREA:sensor_min#ffffffff";
|
||||
|
||||
#$rrd_options .= " AREA:sensor#FFFF99";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lf";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lf\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Crest Factor';
|
||||
|
||||
// EOF
|
@ -1,41 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%5.2lfA\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
if (get_var_true($vars['previous']))
|
||||
{
|
||||
$rrd_options .= " DEF:sensorX=$rrd_filename_escape:sensor:AVERAGE:start=".$prev_from.":end=".$from;
|
||||
$rrd_options .= " LINE1.5:sensorX#0000cc:'Prev " . rrdtool_escape($sensor['sensor_descr'],18)."'";
|
||||
$rrd_options .= " SHIFT:sensorX:$period";
|
||||
$rrd_options .= " GPRINT:sensorX$current_id:MIN:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensorX:LAST:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensorX:MAX:%5.2lfA\\l";
|
||||
}
|
||||
|
||||
$graph_return['descr'] = 'Current sensor measured in Amperes.';
|
||||
$graph_return['valid_options'] = array('previous');
|
||||
|
||||
// EOF
|
@ -1,47 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "60";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
$rrd_options .= " CDEF:sensor_diff=sensor_max,sensor_min,-";
|
||||
$rrd_options .= " AREA:sensor_min";
|
||||
$rrd_options .= " AREA:sensor_diff#c5c5c5::STACK";
|
||||
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor_min:MIN:%4.1lfdB";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%4.1lfdB";
|
||||
$rrd_options .= " GPRINT:sensor_max:MAX:%4.1lfdB\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
#wtfbroken code.
|
||||
if (get_var_true($vars['previous'])) {
|
||||
$rrd_options .= " DEF:sensorX=$rrd_filename_escape:sensor:AVERAGE:start=".$prev_from.":end=".$from;
|
||||
$rrd_options .= " LINE1.5:sensorX#0000cc:'Prev " . rrdtool_escape($sensor['sensor_descr'],18)."'";
|
||||
$rrd_options .= " SHIFT:sensorX:$period";
|
||||
$rrd_options .= " GPRINT:sensorX$current_id:MIN:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensorX:LAST:%5.2lfA";
|
||||
$rrd_options .= " GPRINT:sensorX:MAX:%5.2lfA\\l";
|
||||
}
|
||||
|
||||
$graph_return['descr'] = nicecase($sensor['sensor_class']).' sensor measured in db.';
|
||||
|
||||
// EOF
|
@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfdBm";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%5.2lfdBm";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%5.2lfdBm\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'dBm sensor.';
|
||||
|
||||
// EOF
|
@ -1,48 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "60";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
$rrd_options .= " CDEF:sensor_diff=sensor_max,sensor_min,-";
|
||||
$rrd_options .= " AREA:sensor_min";
|
||||
$rrd_options .= " AREA:sensor_diff#c5c5c5::STACK";
|
||||
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor_min:MIN:%4.1lfC";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%4.1lfC";
|
||||
$rrd_options .= " GPRINT:sensor_max:MAX:%4.1lfC\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
#wtfbroken code.
|
||||
if (get_var_true($vars['previous']))
|
||||
{
|
||||
$rrd_options .= " DEF:sensorX=$rrd_filename_escape:sensor:AVERAGE:start=".$prev_from.":end=".$from;
|
||||
$rrd_options .= " LINE1.5:sensorX#0000cc:'Prev " . rrdtool_escape($sensor['sensor_descr'],18)."'";
|
||||
$rrd_options .= " SHIFT:sensorX:$period";
|
||||
$rrd_options .= " GPRINT:sensorX$current_id:MIN:%5.2lfC";
|
||||
$rrd_options .= " GPRINT:sensorX:LAST:%5.2lfC";
|
||||
$rrd_options .= " GPRINT:sensorX:MAX:%5.2lfC\\l";
|
||||
}
|
||||
|
||||
$graph_return['descr'] = 'Dew point measured in celsius.';
|
||||
|
||||
// EOF
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc1100";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 1;
|
||||
$unit_text = "m";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#99999960::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#99999960::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Distance sensor measured in m.';
|
||||
|
||||
// EOF
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "mg/M3";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
//if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
//if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Dust';
|
||||
|
||||
// EOF
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%3.0lfrpm";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%3.0lfrpm\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Rotational fan speed sensor measured in RPM.';
|
||||
|
||||
// EOF
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lf%sHz";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lf%sHz\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Frequency sensor measured in hertz';
|
||||
|
||||
// EOF
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 20);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Gauge";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
$graph_return['descr'] = 'Gauges.';
|
||||
|
||||
// EOF
|
@ -6,31 +6,55 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/// FIXME. To unify all sensor graphs.
|
||||
$include = $config['html_dir'] . "/includes/graphs/$type/";
|
||||
// Some Class specific options
|
||||
switch ($sensor['sensor_class']) {
|
||||
case 'humidity':
|
||||
case 'capacity':
|
||||
case 'load':
|
||||
case 'progress':
|
||||
include($include."percent.inc.php");
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
break;
|
||||
case 'snr':
|
||||
case 'attenuation':
|
||||
case 'sound':
|
||||
include($include."db.inc.php");
|
||||
$scale_min = "0";
|
||||
$scale_max = "60";
|
||||
break;
|
||||
default:
|
||||
if (is_file($include.$sensor['sensor_class'].".inc.php")) {
|
||||
include($include.$sensor['sensor_class'].".inc.php");
|
||||
} else {
|
||||
graph_error($type.'_'.$subtype); // Graph Template Missing;
|
||||
}
|
||||
}
|
||||
unset($include);
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$sensor_type = $config['sensor_types'][$sensor['sensor_type']];
|
||||
|
||||
$line_text = $sensor['sensor_descr'];
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
if (isset($sensor_type['graph_unit'])) {
|
||||
$unit_text = $sensor_type['graph_unit'];
|
||||
} else {
|
||||
$unit_text = $sensor_type['symbol'];
|
||||
}
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) {
|
||||
$rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
}
|
||||
if (is_numeric($sensor['sensor_limit_low'])) {
|
||||
$rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
}
|
||||
|
||||
$graph_return['descr'] = $sensor_type['descr'];
|
||||
|
||||
|
||||
// EOF
|
||||
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 1;
|
||||
$unit_text = "lux";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Illuminance sensor measured in lux.';
|
||||
|
||||
// EOF
|
@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfΩ";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%5.2lfΩ";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%5.2lfΩ\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Resistance sensor.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
$rrd_options .= " CDEF:sensor_diff=sensor_max,sensor_min,-";
|
||||
$rrd_options .= " AREA:sensor_min";
|
||||
$rrd_options .= " AREA:sensor_diff#c5c5c5::STACK";
|
||||
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor_min:MIN:%4.1lf%%";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%4.1lf%%";
|
||||
$rrd_options .= " GPRINT:sensor_max:MAX:%4.1lf%%\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = nicecase($sensor['sensor_class']).' sensor measured in percent.';
|
||||
|
||||
// EOF
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'],8);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Watts";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
//if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
//if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Power sensor measured in watts.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " AREA:sensor_max#c5c5c5";
|
||||
$rrd_options .= " AREA:sensor_min#ffffffff";
|
||||
|
||||
#$rrd_options .= " AREA:sensor#FFFF99";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lf";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lf\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Power Factor';
|
||||
|
||||
// EOF
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Pa";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Pressure sensor measured in Pascal.';
|
||||
|
||||
// EOF
|
@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfΩ";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%5.2lfΩ";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%5.2lfΩ\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Resistance sensor.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " AREA:sensor_max#c5c5c5";
|
||||
$rrd_options .= " AREA:sensor_min#ffffffff";
|
||||
|
||||
#$rrd_options .= " AREA:sensor#FFFF99";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lfW";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lfW\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Reactive power sensor measured in voltampere reactive.';
|
||||
|
||||
// EOF
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " AREA:sensor_max#c5c5c5";
|
||||
$rrd_options .= " AREA:sensor_min#ffffffff";
|
||||
|
||||
#$rrd_options .= " AREA:sensor#FFFF99";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lf%smin";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lf%smin\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Runtime sensor measured in minutes.';
|
||||
|
||||
// EOF
|
@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%3.0lf";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%3.0lf\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
// EOF
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "CC0000";
|
||||
$colour_minmax = "FF5555";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 60;
|
||||
$unit_text = "C";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Temperature sensor measured in celsius.';
|
||||
|
||||
// EOF
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 1;
|
||||
$unit_text = "m/s";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#99999960::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#99999960::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Velocity sensor measured in m/s.';
|
||||
|
||||
// EOF
|
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -A ";
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " DEF:sensor_max=$rrd_filename_escape:sensor:MAX";
|
||||
$rrd_options .= " DEF:sensor_min=$rrd_filename_escape:sensor:MIN";
|
||||
|
||||
$rrd_options .= " CDEF:sensor_minmax=sensor_max,sensor_min,-";
|
||||
|
||||
$rrd_options .= " AREA:sensor_min#00000000";
|
||||
$rrd_options .= " AREA:sensor_minmax#ff333360:STACK";
|
||||
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],22)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%6.2lfV";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%6.2lfV\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Potential sensor measured in volts.';
|
||||
|
||||
// EOF
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Litres";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
//if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
//if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Volume.';
|
||||
|
||||
// EOF
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:sensor=$rrd_filename_escape:sensor:AVERAGE";
|
||||
$rrd_options .= " LINE1.5:sensor#cc0000:'" . rrdtool_escape($sensor['sensor_descr'],20)."'";
|
||||
$rrd_options .= " GPRINT:sensor:LAST:%3.0lfl/min";
|
||||
$rrd_options .= " GPRINT:sensor:MAX:%3.0lfl/min\\l";
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes";
|
||||
if (is_numeric($sensor['sensor_limit_low'])) $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes";
|
||||
|
||||
$graph_return['descr'] = 'Water flow sensor measured in l/min.';
|
||||
|
||||
// EOF
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "sensor";
|
||||
|
||||
$line_text = rrdtool_escape($sensor['sensor_descr'], 22);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFFF99";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$scale_min = 0;
|
||||
$graph_max = 1;
|
||||
$unit_text = "nm";
|
||||
$print_min = 1;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
if (is_numeric($sensor['sensor_limit'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit']."#999999::dashes"; }
|
||||
if (is_numeric($sensor['sensor_limit_low'])) { $rrd_options .= " HRULE:".$sensor['sensor_limit_low']."#999999::dashes"; }
|
||||
|
||||
$graph_return['descr'] = 'Wavelength sensor measured in nm.';
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user