1<?php 2 3require 'includes/html/graphs/common.inc.php'; 4 5$i = 0; 6$scale_min = 0; 7$nototal = 1; 8$unit_text = 'Query/s'; 9$rrd_filename = Rrd::name($device['hostname'], ['app', 'unbound-operations', $app['app_id']]); 10$array = [ 11 'opcodeQuery', 12 'rcodeNOERROR', 13 'rcodeNXDOMAIN', 14 'rcodeNodata', 15]; 16 17$colours = 'mixed'; 18$rrd_list = []; 19 20if (Rrd::checkRrdExists($rrd_filename)) { 21 foreach ($array as $ds) { 22 $rrd_list[$i]['filename'] = $rrd_filename; 23 $rrd_list[$i]['descr'] = strtoupper($ds); 24 $rrd_list[$i]['ds'] = $ds; 25 $i++; 26 } 27} else { 28 echo "file missing: $rrd_filename"; 29} 30 31require 'includes/html/graphs/generic_multi_line.inc.php'; 32