I’ve been using Nagios and Cacti for many years, but they have their annoyances, not least the fact that they’re independent so require configuration in 2 places.
So I’ve been moving over to using Zabbix. Don’t get me wrong, Zabbix can be a pain too, but it does alerting and graphing in one app, the configuration is sane, and the flexibility around alerts blows Nagios away.
So I had some rather complex and beautiful graphing of Bind statistics in my old Cacti and I wanted to reproduce it in Zabbix. I couldn’t find anything close to what I wanted, so I rolled up my sleeves and created it from scratch.
The result is a script, a config and a template which collects almost every statistic available from Bind via its HTTP/XML statistics, some autodiscovery of per-zone statistics and a bunch of pretty graphs.
The code and setup instructions can be found on the GitHub page:
https://github.com/Pesticles/Zabbix-Bind9-Statistics-Collection
Please feel free to clone it and submit changes back to me.