diff options
author | Pim van den Berg | 2011-06-26 20:26:58 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-06-26 20:26:58 +0200 |
commit | ef9469160c9fc8023754c76a83a7db2f1617a3ed (patch) | |
tree | f318907bf959f370a235f17405b96b31322f9c8d /plugin/dns.php | |
parent | plugin/users: collectd 5 compatibility (diff) | |
download | apt-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.php | 5 |
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 | ||
49 | collectd_flush($obj->identifiers); | 54 | collectd_flush($obj->identifiers); |