mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
29 lines
617 B
PHP
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';
|