Files

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

71 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2017-05-03 09:23:33 -05:00
<?php
$unitlen = 13;
$bigdescrlen = 9;
$smalldescrlen = 9;
$dostack = 0;
$printtotal = 0;
$unit_text = 'RR sets';
$colours = 'psychedelic';
$rrd_list = [];
$rrd_filename = Rrd::name($device['hostname'], ['app', 'bind', $app->app_id, 'rrpositive']);
2017-05-03 09:23:33 -05:00
$array = [
'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',
];
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
2017-05-03 09:23:33 -05:00
foreach ($array as $ds) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => strtoupper($ds),
'ds' => $ds,
];
}
} else {
echo "file missing: $file";
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_line.inc.php';