Basic concept is simple – BIND will generate XML file with statistics, PHP script output values we want into standalone files and we read those values with ZABBIX agent.

We gonna need PHP to process XML statistics from BIND, install it with:

Turn on integrated BIND webserver with statistics in configuration file named.conf:

And reload: service bind9 reload

Let’s say that we will have our statistics in /home/bindstat. Save there PHP file stats.php:

Edit crontab and add lines to download statistics and parse them:

Make sure we have proper rights and owners:

Finally add file for ZABBIX agent /etc/zabbix/zabbix_agentd.d/bind.conf with content:

And restart: /etc/init.d/zabbix-agent reload

To use with ZABBIX start with this template from ZABBIX 2.0 with basic items and triggers. Also you can download template from Zabbix 4.4 here.


Share Button