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

37 lines
800 B
PHP

<?php
$unitlen = 15;
$bigdescrlen = 20;
$smalldescrlen = 20;
$dostack = 0;
$printtotal = 0;
$unit_text = 'Runtime/sec';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = rrd_name($device['hostname'], ['app', 'puppet-agent', $app['app_id'], 'time']);
$array = [
'catalog_application',
'config_retrieval',
'convert_catalog',
'fact_generation',
'node_retrieval',
'plugin_sync',
'schedule',
'transaction_evaluation',
'total',
];
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';