Bind Statistics (How to graph them into Cacti)

bindcactigraph

I have seen a couple of post on SF like;

I want to graph statistics on 2 bind resolvers and 2 bind authoritative servers (into Cacti). It seems that adding the following to named.conf (or named.conf.options) enables the dumping of statistics when you run the file rndc stats:

statistics-file "/var/cache/bind/named.stats";
zone-statistics yes;

The stats in the named.stats file given are pretty poor;

cat /var/cache/bind/named.stats
+++ Statistics Dump +++ (1359639340)
success 25
referral 0
nxrrset 0
nxdomain 3
recursion 43
failure 0
duplicate 0
dropped 0
--- Statistics Dump --- (1359639340)

I believe there is a poor amount of statistics given because of the version of bind running, is that true?

named -version
BIND 9.4.2-P2.1

Look at all the stats this chap gets for example. Do I need to upgrade bind to get better stats, or is there some other way?

Best Answer

You can get much more statistics using Bind and then graph it in Cacti. For this I advice you to upgrade to Bind 9.6 and use scripted attached to post here (http://forums.cacti.net/viewtopic.php?f=12&t=42218) to get various statistics. Setup instructions are also listed there.

I found one more result from Cacti site: Bind 9.7 Usertemplate