From ef9469160c9fc8023754c76a83a7db2f1617a3ed Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 26 Jun 2011 20:26:58 +0200 Subject: plugin/dns: add dns reply code --- plugin/dns.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin') diff --git a/plugin/dns.php b/plugin/dns.php index d0784df..d0322f1 100644 --- a/plugin/dns.php +++ b/plugin/dns.php @@ -44,6 +44,11 @@ switch($obj->args['type']) { $obj->rrd_title = 'DNS QType'; $obj->rrd_vertical = 'Queries/s'; break; + case 'dns_rcode': + $obj->data_sources = array('value'); + $obj->rrd_title = 'DNS Reply code'; + $obj->rrd_vertical = 'Queries/s'; + break; } collectd_flush($obj->identifiers); -- cgit v1.1