<?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_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[]=array(
            'filename' => $rrd_filename,
            'descr' => $ds,
            'ds' => $ds,
        );
    }
} else {
    echo "file missing: $file";
}

require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
