Files

34 lines
736 B
PHP
Raw Permalink Normal View History

2019-05-13 06:42:03 +02:00
<?php
2020-09-21 15:40:17 +02:00
2019-05-13 06:42:03 +02:00
$name = 'mdadm';
$app_id = $app['app_id'];
2020-09-21 15:40:17 +02:00
$colours = 'mega';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$scale_min = 0;
2019-05-13 06:42:03 +02:00
if (isset($vars['array'])) {
2020-09-21 15:40:17 +02:00
$arrays = [$vars['array']];
2019-05-13 06:42:03 +02:00
} else {
2020-06-17 14:00:18 +02:00
$arrays = get_arrays_with_application($device, $app_id, $name);
2019-05-13 06:42:03 +02:00
}
2020-09-21 15:40:17 +02:00
$int = 0;
2019-05-13 06:42:03 +02:00
while (isset($arrays[$int])) {
2020-09-21 15:40:17 +02:00
$array = $arrays[$int];
$rrd_filename = rrd_name($device['hostname'], ['app', $name, $app_id, $array]);
2019-05-13 06:42:03 +02:00
if (rrdtool_check_rrd_exists($rrd_filename)) {
2020-09-21 15:40:17 +02:00
$rrd_list[] = [
2019-05-13 06:42:03 +02:00
'filename' => $rrd_filename,
'descr' => $array,
'ds' => $rrdVar,
2020-09-21 15:40:17 +02:00
];
2019-05-13 06:42:03 +02:00
}
$int++;
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';