Files
librenms-librenms/includes/html/graphs/application/puppet-agent_last_run.inc.php
2020-09-21 15:40:17 +02:00

29 lines
617 B
PHP

<?php
$unitlen = 10;
$bigdescrlen = 9;
$smalldescrlen = 9;
$dostack = 0;
$printtotal = 0;
$unit_text = 'Minutes';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'puppet-agent', $app['app_id'], 'last_run']);
$array = [
'last_run',
];
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => $ds,
'ds' => $ds,
];
}
} else {
echo "file missing: $file";
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';