1<?php
2
3$name = 'smart';
4$app_id = $app['app_id'];
5$colours = 'mega';
6$dostack = 0;
7$printtotal = 0;
8$addarea = 1;
9$transparency = 15;
10$scale_min = 0;
11
12if (isset($vars['disk'])) {
13    $disks = [$vars['disk']];
14} else {
15    $disks = Rrd::getRrdApplicationArrays($device, $app_id, $name);
16}
17
18$smart_enhancements = ['id9'];
19
20$int = 0;
21$rrd_list = [];
22while (isset($disks[$int])) {
23    $disk = $disks[$int];
24
25    if (in_array($rrdVar, $smart_enhancements)) {
26        $rrd_filename = Rrd::name($device['hostname'], ['app', $name . '_' . $rrdVar, $app_id, $disk]);
27    } else {
28        $rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $disk]);
29    }
30
31    if (Rrd::checkRrdExists($rrd_filename)) {
32        $rrd_list[] = [
33            'filename' => $rrd_filename,
34            'descr'    => $disk,
35            'ds'       => $rrdVar,
36        ];
37    }
38    $int++;
39}
40
41require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
42