diff --git a/html/includes/graphs/application/unbound_queries.inc.php b/html/includes/graphs/application/unbound_queries.inc.php new file mode 100644 index 0000000000..2733923b42 --- /dev/null +++ b/html/includes/graphs/application/unbound_queries.inc.php @@ -0,0 +1,47 @@ + 'Unbound - Queries' + ); +foreach ($graphs as $key => $text){ + $graph_type = $key; + $graph_array['height'] = '100'; + $graph_array['width'] = '215'; + $graph_array['to'] = $config['time']['now']; + $graph_array['id'] = $app['app_id']; + $graph_array['type'] = 'application_'.$key; + + echo '
+
+

'.$text.'

+
+
+
'; + include 'includes/print-graphrow.inc.php'; + echo '
'; + echo '
'; + echo '
'; +} \ No newline at end of file diff --git a/includes/polling/applications/unbound.inc.php b/includes/polling/applications/unbound.inc.php new file mode 100644 index 0000000000..05cf626f85 --- /dev/null +++ b/includes/polling/applications/unbound.inc.php @@ -0,0 +1,62 @@ + $unbound['num.query.type.TYPE0'], + 'a' => $unbound['num.query.type.A'], + 'ns' => $unbound['num.query.type.NS'], + 'cname' => $unbound['num.query.type.CNAME'], + 'soa' => $unbound['num.query.type.SOA'], + 'null' => $unbound['num.query.type.NULL'], + 'wks' => $unbound['num.query.type.WKS'], + 'ptr' => $unbound['num.query.type.PTR'], + 'mx' => $unbound['num.query.type.MX'], + 'txt' => $unbound['num.query.type.TXT'], + 'aaaa' => $unbound['num.query.type.AAAA'], + 'srv' => $unbound['num.query.type.SRV'], + 'naptr' => $unbound['num.query.type.NAPTR'], + 'ds' => $unbound['num.query.type.DS'], + 'dnskey' => $unbound['num.query.type.DNSKEY'], + 'spf' => $unbound['num.query.type.SPF'], + 'any' => $unbound['num.query.type.ANY'], + 'other' => $unbound['num.query.type.other'] + ); +$tags = compact('name', 'app_id', 'rrd_name', 'rrd_def'); +data_update($device, 'app', $tags, $fields); +$status = true; +unset($lines , $unbound, $rrd_name, $rrd_def, $fields, $tags); \ No newline at end of file