35 lines
782 B
PHP
35 lines
782 B
PHP
<?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
|