2017-03-03 14:41:20 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$name = 'nvidia';
|
2019-04-09 15:47:43 +02:00
|
|
|
$colours = 'greens';
|
2017-03-03 14:41:20 -06:00
|
|
|
$dostack = 0;
|
|
|
|
|
$printtotal = 0;
|
|
|
|
|
$addarea = 1;
|
|
|
|
|
$transparency = 15;
|
|
|
|
|
|
2020-09-21 15:40:17 +02:00
|
|
|
$int = 0;
|
2017-03-03 14:41:20 -06:00
|
|
|
$rrd_list = [];
|
2022-07-22 16:01:55 -05:00
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $app->app_type, $app->app_id, $int]);
|
2020-09-21 15:40:17 +02:00
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
if (! Rrd::checkRrdExists($rrd_filename)) {
|
2017-03-03 14:41:20 -06:00
|
|
|
echo "file missing: $rrd_filename";
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
while (Rrd::checkRrdExists($rrd_filename)) {
|
2017-03-03 14:41:20 -06:00
|
|
|
$rrd_list[] = [
|
|
|
|
|
'filename' => $rrd_filename,
|
|
|
|
|
'descr' => 'GPU ' . $int,
|
|
|
|
|
'ds' => $rrdVar,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$int++;
|
2022-07-22 16:01:55 -05:00
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $app->app_type, $app->app_id, $int]);
|
2017-03-03 14:41:20 -06:00
|
|
|
}
|
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
|