Files
librenms-librenms/includes/html/graphs/application/puppet-agent_time.inc.php
Tony Murray 1c379dcd05 Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00

37 lines
796 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 (Rrd::checkRrdExists($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';