32 lines
970 B
PHP
32 lines
970 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
|
|
*
|
|
*/
|
|
|
|
$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
|