Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
963 B
PHP
Raw Permalink Normal View History

2016-08-15 17:46:10 -03:00
<?php
2019-06-23 00:29:12 -05:00
use LibreNMS\Config;
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2016-08-15 17:46:10 -03:00
$i = 0;
$scale_min = 0;
$nototal = 1;
$unit_text = 'Query/s';
$rrd_filename = Rrd::name($device['hostname'], ['app', 'unbound-queries', $app->app_id]);
2016-08-15 17:46:10 -03:00
$array = [
'type0',
'A',
'NS',
'CNAME',
'SOA',
'NULL',
'WKS',
'PTR',
'MX',
'TXT',
'AAAA',
'SRV',
'NAPTR',
'DS',
'DNSKEY',
'SPF',
'ANY',
'other',
];
$colours = 'merged';
$rrd_list = [];
2019-06-23 00:29:12 -05:00
Config::set('graph_colours.merged', array_merge(Config::get('graph_colours.greens'), Config::get('graph_colours.blues')));
2016-08-15 17:46:10 -03:00
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
2016-08-15 17:46:10 -03:00
foreach ($array as $ds) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = strtoupper($ds);
$rrd_list[$i]['ds'] = $ds;
$i++;
}
2016-08-18 20:28:22 -05:00
} else {
2016-08-15 17:46:10 -03:00
echo "file missing: $rrd_filename";
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';