Files
librenms-librenms/includes/html/graphs/application/puppet-agent_resources.inc.php

36 lines
822 B
PHP
Raw Normal View History

<?php
$unitlen = 10;
$bigdescrlen = 20;
$smalldescrlen = 20;
$dostack = 0;
$printtotal = 0;
$unit_text = 'Resources';
$colours = 'psychedelic';
$rrd_list = array();
$rrd_filename = rrd_name($device['hostname'], array('app', 'puppet-agent', $app['app_id'], 'resources'));
$array = array(
'changed',
'corrective_change',
'failed',
'failed_to_restart',
'out_of_sync',
'restarted',
'scheduled',
'skipped',
'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';