Files

71 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2017-05-03 09:23:33 -05:00
<?php
2020-09-21 15:40:17 +02:00
$unitlen = 10;
$bigdescrlen = 9;
2017-05-03 09:23:33 -05:00
$smalldescrlen = 9;
2020-09-21 15:40:17 +02:00
$dostack = 0;
$printtotal = 0;
$unit_text = 'RR sets';
$colours = 'psychedelic';
$rrd_list = [];
2017-05-03 09:23:33 -05:00
2020-09-21 15:40:17 +02:00
$rrd_filename = rrd_name($device['hostname'], ['app', 'bind', $app['app_id'], 'rrnegative']);
$array = [
2017-05-03 09:23:33 -05:00
'any',
'a',
'aaaa',
'cname',
'mx',
'ns',
'ptr',
'soa',
'srv',
'spf',
'afsdb',
'apl',
'caa',
'cdnskey',
'cds',
'cert',
'dhcid',
'dlv',
'dnskey',
'ds',
'ipseckey',
'key',
'kx',
'loc',
'naptr',
'nsec',
'nsec3',
'nsec3param',
'rrsig',
'rp',
'sig',
'sshfp',
'ta',
'tkey',
'tlsa',
'tsig',
'txt',
'uri',
'dname',
'nxdomain',
'axfr',
'ixfr',
'opt',
2020-09-21 15:40:17 +02:00
];
2017-05-03 09:23:33 -05:00
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds) {
2020-09-21 15:40:17 +02:00
$rrd_list[] = [
2017-05-03 09:23:33 -05:00
'filename' => $rrd_filename,
2020-09-21 15:40:17 +02:00
'descr' => '!' . strtoupper($ds),
2017-05-03 09:23:33 -05:00
'ds' => $ds,
2020-09-21 15:40:17 +02:00
];
2017-05-03 09:23:33 -05:00
}
} else {
echo "file missing: $file";
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_line.inc.php';