aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/dns.php
diff options
context:
space:
mode:
authorPim van den Berg2011-06-26 20:26:58 +0200
committerPim van den Berg2011-06-26 20:26:58 +0200
commitef9469160c9fc8023754c76a83a7db2f1617a3ed (patch)
treef318907bf959f370a235f17405b96b31322f9c8d /plugin/dns.php
parentplugin/users: collectd 5 compatibility (diff)
downloadapt-panopticon_cgp-ef9469160c9fc8023754c76a83a7db2f1617a3ed.zip
apt-panopticon_cgp-ef9469160c9fc8023754c76a83a7db2f1617a3ed.tar.gz
apt-panopticon_cgp-ef9469160c9fc8023754c76a83a7db2f1617a3ed.tar.bz2
apt-panopticon_cgp-ef9469160c9fc8023754c76a83a7db2f1617a3ed.tar.xz
plugin/dns: add dns reply code
Diffstat (limited to 'plugin/dns.php')
-rw-r--r--plugin/dns.php5
1 files changed, 5 insertions, 0 deletions
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']) {
44 $obj->rrd_title = 'DNS QType'; 44 $obj->rrd_title = 'DNS QType';
45 $obj->rrd_vertical = 'Queries/s'; 45 $obj->rrd_vertical = 'Queries/s';
46 break; 46 break;
47 case 'dns_rcode':
48 $obj->data_sources = array('value');
49 $obj->rrd_title = 'DNS Reply code';
50 $obj->rrd_vertical = 'Queries/s';
51 break;
47} 52}
48 53
49collectd_flush($obj->identifiers); 54collectd_flush($obj->identifiers);