1 | <?php |
||
2 | |||
3 | $name = 'docker'; |
||
4 | $app_id = $app['app_id']; |
||
5 | $colours = 'mega'; |
||
6 | $dostack = 0; |
||
7 | $printtotal = 0; |
||
8 | $addarea = 1; |
||
9 | $transparency = 15; |
||
10 | |||
11 | $unitlen = 20; |
||
12 | $bigdescrlen = 25; |
||
13 | $smalldescrlen = 25; |
||
14 | |||
15 | if (isset($vars['container'])) { |
||
16 | $containers = [$vars['container']]; |
||
17 | } else { |
||
18 | $containers = Rrd::getRrdApplicationArrays($device, $app['app_id'], 'docker'); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
19 | } |
||
20 | |||
21 | $int = 0; |
||
22 | while (isset($containers[$int])) { |
||
23 | $container_name = $containers[$int]; |
||
24 | $rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $container_name]); |
||
25 | |||
26 | if (Rrd::checkRrdExists($rrd_filename)) { |
||
27 | $rrd_list[] = [ |
||
28 | 'filename' => $rrd_filename, |
||
29 | 'descr' => $container_name, |
||
30 | 'ds' => $rrdVar, |
||
31 | ]; |
||
32 | } |
||
33 | $int++; |
||
34 | } |
||
35 | |||
36 | require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php'; |
||
37 |