2010-06-09 20:20:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$scale_min = "0";
|
|
|
|
|
2010-07-24 19:24:07 +00:00
|
|
|
include("includes/graphs/common.inc.php");
|
2010-06-09 20:20:38 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
2010-06-09 20:20:38 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$sensor['sensor_descr_fixed'] = substr(str_pad($sensor['sensor_descr'], 18),0,18);
|
2010-06-09 20:20:38 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$rrd_options .= " DEF:sensor=$rrd_filename:sensor:AVERAGE";
|
|
|
|
$rrd_options .= " LINE1.5:sensor#cc0000:'" . $sensor['sensor_descr_fixed']."'";
|
|
|
|
$rrd_options .= " GPRINT:sensor$current_id:MIN:%5.2lfA";
|
|
|
|
$rrd_options .= " GPRINT:sensor:LAST:%5.2lfA";
|
|
|
|
$rrd_options .= " GPRINT:sensor:MAX:%5.2lfA\\\\l";
|
2010-06-09 20:20:38 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
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";
|
2010-08-11 17:08:56 +00:00
|
|
|
|
2011-04-26 15:07:52 +00:00
|
|
|
?>
|