diff --git a/agent-local/powerdns b/agent-local/powerdns new file mode 100755 index 0000000..eaee4cd --- /dev/null +++ b/agent-local/powerdns @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +from subprocess import check_output + +vars = [ 'corrupt-packets', 'deferred-cache-inserts', 'deferred-cache-lookup', +'latency', 'packetcache-hit', 'packetcache-miss', 'packetcache-size', +'qsize-q', 'query-cache-hit', 'query-cache-miss', 'recursing-answers', +'recursing-questions', 'servfail-packets', 'tcp-answers', 'tcp-queries', +'timedout-packets', 'udp-answers', 'udp-queries', 'udp4-answers', +'udp4-queries', 'udp6-answers', 'udp6-queries' ] + +rvars = {} + +for l in check_output(['/usr/bin/pdns_control', 'show', '*']).rstrip().split(','): + v = l.split('=') + if len(v) > 1: + rvars[v[0]] = v[1] + +print "<<>>" + +for k in vars: + print rvars[k] diff --git a/debian/changelog b/debian/changelog index 6e5ab31..a0676a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +librenms-agent (1.0.5) stable; urgency=low + + - Include a PowerDNS Authoritative agent + + -- Mark Schouten Mon, 23 Nov 2015 14:10:00 +0200 + librenms-agent (1.0.4) stable; urgency=low - Include a Ceph agent