Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
733 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';
$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'])) {
$arrays = [$vars['array']];
} else {
$arrays = Rrd::getRrdApplicationArrays($device, $app->app_id, $name);
2019-05-13 06:42:03 +02:00
}
$int = 0;
$rrd_list = [];
2019-05-13 06:42:03 +02:00
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, $array]);
2019-05-13 06:42:03 +02:00
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
2019-05-13 06:42:03 +02:00
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => $array,
'ds' => $rrdVar,
];
}
$int++;
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';