49 lines
889 B
PHP
49 lines
889 B
PHP
<?php
|
|
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage graphs
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
|
|
$units = '';
|
|
$unit_text = 'Value';
|
|
$total_units = '';
|
|
|
|
$i = 1;
|
|
|
|
$rrd_list = [];
|
|
|
|
foreach ($vars['id'] as $port_id) {
|
|
|
|
$sensor = dbFetchRow("SELECT * FROM `sensors` WHERE `sensor_id` = ?", [$port_id]);
|
|
|
|
$device = device_by_id_cache($sensor['device_id']);
|
|
|
|
$rrd_filename = get_rrd_path($device, get_sensor_rrd($device, $sensor));
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
$rrd_list[$i]['descr'] = $sensor['sensor_descr'];
|
|
$rrd_list[$i]['ds'] = 'sensor';
|
|
|
|
$i++;
|
|
}
|
|
|
|
$colours = 'mixed';
|
|
|
|
$scale_min = "0";
|
|
$nototal = 1;
|
|
$show_aggregate = TRUE;
|
|
$simple_rrd = FALSE;
|
|
|
|
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
|
|
|
// EOF
|
|
|