mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
29
includes/html/graphs/application/puppet-agent_events.inc.php
Normal file
29
includes/html/graphs/application/puppet-agent_events.inc.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$unitlen = 10;
|
||||
$bigdescrlen = 9;
|
||||
$smalldescrlen = 9;
|
||||
$dostack = 0;
|
||||
$printtotal = 0;
|
||||
$unit_text = 'Events';
|
||||
$colours = 'psychedelic';
|
||||
$rrd_list = array();
|
||||
|
||||
$rrd_filename = rrd_name($device['hostname'], array('app', 'puppet-agent', $app['app_id'], 'events'));
|
||||
$array = array(
|
||||
'success',
|
||||
'failure',
|
||||
'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';
|
||||
Reference in New Issue
Block a user