2019-10-22 00:28:21 +02:00
|
|
|
<?php
|
2020-09-21 15:40:17 +02:00
|
|
|
|
2019-10-22 00:28:21 +02:00
|
|
|
$name = 'seafile';
|
|
|
|
|
$colours = 'mega';
|
|
|
|
|
$dostack = 0;
|
|
|
|
|
$printtotal = 0;
|
|
|
|
|
$addarea = 1;
|
|
|
|
|
$transparency = 15;
|
|
|
|
|
|
|
|
|
|
if (isset($vars['array'])) {
|
|
|
|
|
$arrays = [$vars['array']];
|
|
|
|
|
} else {
|
2022-07-22 16:01:55 -05:00
|
|
|
$arrays = Rrd::getRrdApplicationArrays($device, $app->app_id, $name, $category);
|
2019-10-22 00:28:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$int = 0;
|
2021-04-29 05:00:32 +02:00
|
|
|
$rrd_list = [];
|
2019-10-22 00:28:21 +02:00
|
|
|
while (isset($arrays[$int])) {
|
|
|
|
|
$array = $arrays[$int];
|
2022-07-22 16:01:55 -05:00
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, $array]);
|
2019-10-22 00:28:21 +02:00
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
if (Rrd::checkRrdExists($rrd_filename)) {
|
2019-10-22 00:28:21 +02:00
|
|
|
$rrd_list[] = [
|
|
|
|
|
'filename' => $rrd_filename,
|
2024-01-05 05:39:12 +01:00
|
|
|
'descr' => str_replace($category . '-', '', $array),
|
|
|
|
|
'ds' => $rrdVar,
|
2019-10-22 00:28:21 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
$int++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($unit_type == 'float') {
|
|
|
|
|
require 'includes/html/graphs/generic_multi_line.inc.php';
|
|
|
|
|
} else {
|
|
|
|
|
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
|
|
|
|
|
}
|