librenms-librenms/includes/html/graphs/application/puppet-agent_time.inc.php
SourceDoctor 53dc564ef5 Puppet Agent Monitoring (#10827)
* puppet agent monitoring

* change position of last run graph

* device overview panel

* updating documentation

* mouseover for Overview Dashboard

* adding blank line for code climate
2020-02-12 08:26:02 +01:00

36 lines
854 B
PHP

<?php
$unitlen = 15;
$bigdescrlen = 20;
$smalldescrlen = 20;
$dostack = 0;
$printtotal = 0;
$unit_text = 'Runtime/sec';
$colours = 'psychedelic';
$rrd_list = array();
$rrd_filename = rrd_name($device['hostname'], array('app', 'puppet-agent', $app['app_id'], 'time'));
$array = array(
'catalog_application',
'config_restrieval',
'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[]=array(
'filename' => $rrd_filename,
'descr' => $ds,
'ds' => $ds,
);
}
} else {
echo "file missing: $file";
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';