Configure Munin Bind Plugin

First of all you will need to enable logging and statistics in Bind 9.  To do this, please follow the steps in the article below:

http://blogs.barlow.uk.net/techblog/setup-bind-9-dns-logging-and-statistics/

Munin DNS Logging
Now you have this setup in Bind, now you need to enable the plugin:

sudo ln -s /usr/share/munin/plugins/bind9 /etc/munin/plugins/bind9

Now we need to setup users credentials for Munin to use.  Edit the following file:

sudo nano /etc/munin/plugin-conf.d/munin-node

Add the following:

[bind9]
user root

If you have used the default location for the logs (/var/log/named/) you will need to setup a symbolic link called bind9 to point to this location, as the script by default uses the /var/log/bind9 directory.

sudo ln -s /var/log/named /var/log/bind9

Now you need to restart Munin

sudo service munin-node restart

Munin DNS Statistics
Now you have this setup in Bind, now you need to enable the plugin:

sudo ln -s /usr/share/munin/plugins/bind9_rndc /etc/munin/plugins/bind9_rndc

Now we need to setup users credentials for Munin to use.  Edit the following file:

sudo nano /etc/munin/plugin-conf.d/munin-node

Add the following:
[bind9_rndc]
user root
env.querystats /var/cache/bind/named.stats

Now you need to restart Munin

sudo service munin-node restart