/Zabbix-Bind9-Statistics-Collection

Zabbix Bind9 Statistics

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Zabbix Bind9 Statistics Collection

Join the chat at https://gitter.im/Zabbix-Bind9-Statistics-Collection/Lobby

This method utilises Bind 9s built in statistics export via HTTP/XML.

Most statistics available are collected, several aggregate graphs are defined.

Forked from https://github.com/Pesticles/Zabbix-Bind9-Statistics-Collection

Requirements

  • Zabbix 2.X.X and Zabbix 3.X.X
  • Python 3

To install:

  • Configure Bind to export statistics via HTTP by adding the following to your bind.conf and restarting bind:
statistics-channels {
 	inet 127.0.0.1 port 8653 allow { 127.0.0.1; };
};
  • Copy the userparameter_bind.conf into your zabbix agents include directory (/etc/zabbix/zabbix_agentd.d/ on Debian/Ubuntu)
  • Copy the script bind-stats.py to /usr/local/bin/ (or anywhere else you like, but you will need to alter the contents of userparameter_bind.conf)
  • Import the xml template into Zabbix (zbx_bind_statistics_template_v3.xml for Zabbix 3.X.X)

Note:

You can enable per-zone statistics (which will be automatically discovered) by adding the following clause to each zone definition in your bind.conf: zone-statistics yes;