zabbix_export: version: '5.4' date: '2021-11-21T22:00:08Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 46f70f725f984772a523bb27d9188689 template: DNS-bind name: DNS description: | ## Overview **Requirements** Bind Server 9 and above Zabbix Server 4+ and above Zabbix Agent on monitored host **How it works** Include statistics in named.conf statistics-channels { inet 127.0.0.1 port 8053 allow { 127.0.0.1; }; }; Include - zabbix\_agentd.d/bind.conf UserParameter=bind.net.udp,netstat -nua | grep :53 | wc -l UserParameter=bind.net.tcp,netstat -nta | grep :53 | wc -l UserParameter=bind.queries.in[*],curl http://127.0.0.1:8053/ 2>/dev/null | xml2 | grep -A1 "/statistics/server/counters/counter/@name=$1$" | tail -1 | cut -d= -f2 UserParameter=bind.queries.out[*],curl http://127.0.0.1:8053/ 2>/dev/null | xml2 | grep -A1 "/statistics/views/view/counters/counter/@name=$1$" | tail -1 | cut -d= -f2 UserParameter=bind.queries.query[*],curl http://127.0.0.1:8053/ 2>/dev/null | xml2 | grep -A1 "/statistics/server/counters/counter/@name=Qry$1$" | tail -1 | cut -d= -f2 ![](http://img.dzek.ru/images/dns.jpg) groups: - name: Templates items: - uuid: ad2a4704243049c4bd212fd9d86b2be8 name: 'Queries in AAAA' key: 'bind.queries.in[AAAA]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 612f7ccc1205487384434d2fda1eac48 name: 'Queries in ANY' key: 'bind.queries.in[ANY]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 9f09d9d5a7d84d24884e729608b25809 name: 'Queries in A' key: 'bind.queries.in[A]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 2595aa9c06d7415397f9afdeb5b40bed name: 'Queries in CNAME' key: 'bind.queries.in[CNAME]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 702cd8037a1b4f6abaf41c1ce24acab3 name: 'Queries in MX' key: 'bind.queries.in[MX]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 5c8dc7bb6d034951bb24ed44646770a3 name: 'Queries in NS' key: 'bind.queries.in[NS]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: e493dcfb6ab04a8db8e15d3b4e69c781 name: 'Queries in PTR' key: 'bind.queries.in[PTR]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 4030acb0b80741c2a09744ae93e14fcc name: 'Queries in SOA' key: 'bind.queries.in[SOA]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: ab32011ececf4f7ba38240acf4b9e18b name: 'Queries in SPF' key: 'bind.queries.in[SPF]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: a4aac6fe885741f0b065ffcdd8aa6b96 name: 'Queries in TXT' key: 'bind.queries.in[TXT]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 3c467648402a4e67a8bd41b27e988deb name: 'Queries out AAAA' key: 'bind.queries.out[AAAA]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 0ad7e7b0616441d89b5f07bfe2f430b8 name: 'Queries out ANY' key: 'bind.queries.out[ANY]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 63bd89dba5d54c9e83ea6618dac27bf9 name: 'Queries out A' key: 'bind.queries.out[A]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: a681b39b79f14845985046bf188fe374 name: 'Queries out CNAME' key: 'bind.queries.out[CNAME]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 8d1628d43ab04539b7687a0e9d6d551b name: 'Queries out MX' key: 'bind.queries.out[MX]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: fc4ac3000c1c4821ac9451fdea080aa4 name: 'Queries out NS' key: 'bind.queries.out[NS]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: c78a6edfa47b4d64b17f29f2753f16bf name: 'Queries out PTR' key: 'bind.queries.out[PTR]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 7f5fb1c944d14cfe9b073a70493aebdf name: 'Queries out SOA' key: 'bind.queries.out[SOA]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: b664ea55b37e43d587c7da60eb854d14 name: 'Queries out SPF' key: 'bind.queries.out[SPF]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS - uuid: 85991cbfadc04e7fa76c793dba86cbd4 name: 'Queries out TXT' key: 'bind.queries.out[TXT]' delay: '30' trends: 120d preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: DNS graphs: - uuid: 276cdc4bedaf49718f33f04cafb280c6 name: 'Queries IN' graph_items: - drawtype: BOLD_LINE color: C80000 item: host: DNS-bind key: 'bind.queries.in[A]' - sortorder: '1' drawtype: BOLD_LINE color: 00C800 item: host: DNS-bind key: 'bind.queries.in[AAAA]' - sortorder: '2' color: 0000C8 item: host: DNS-bind key: 'bind.queries.in[CNAME]' - sortorder: '3' drawtype: BOLD_LINE color: C800C8 item: host: DNS-bind key: 'bind.queries.in[MX]' - sortorder: '4' color: 00C8C8 item: host: DNS-bind key: 'bind.queries.in[NS]' - sortorder: '5' color: C8C800 item: host: DNS-bind key: 'bind.queries.in[PTR]' - sortorder: '6' drawtype: DASHED_LINE color: C8C8C8 item: host: DNS-bind key: 'bind.queries.in[SPF]' - sortorder: '7' drawtype: DASHED_LINE color: '960000' item: host: DNS-bind key: 'bind.queries.in[TXT]' - sortorder: '8' item: host: DNS-bind key: 'bind.queries.in[ANY]' - sortorder: '9' color: '000000' item: host: DNS-bind key: 'bind.queries.in[SOA]' - uuid: f68fb68cb9d348a0b6a5e318ad8c5a31 name: 'Queries OUT' graph_items: - drawtype: BOLD_LINE color: C80000 item: host: DNS-bind key: 'bind.queries.out[A]' - sortorder: '1' drawtype: BOLD_LINE color: 00C800 item: host: DNS-bind key: 'bind.queries.out[AAAA]' - sortorder: '2' color: 0000C8 item: host: DNS-bind key: 'bind.queries.out[CNAME]' - sortorder: '3' drawtype: BOLD_LINE color: C800C8 item: host: DNS-bind key: 'bind.queries.out[MX]' - sortorder: '4' color: 00C8C8 item: host: DNS-bind key: 'bind.queries.out[NS]' - sortorder: '5' color: C8C800 item: host: DNS-bind key: 'bind.queries.out[PTR]' - sortorder: '6' drawtype: DASHED_LINE color: C8C8C8 item: host: DNS-bind key: 'bind.queries.out[SPF]' - sortorder: '7' drawtype: DASHED_LINE color: '960000' item: host: DNS-bind key: 'bind.queries.out[TXT]' - sortorder: '8' item: host: DNS-bind key: 'bind.queries.out[ANY]' - sortorder: '9' color: '000000' item: host: DNS-bind key: 'bind.queries.out[SOA]'