From 791f0dfa2b6050b4464800b762e1ac385c789a62 Mon Sep 17 00:00:00 2001 From: Ilya Date: Sun, 26 Mar 2017 03:09:47 +0900 Subject: [PATCH] dns_query_time plugin: makefiles and python.d.conf update --- conf.d/Makefile.am | 1 + conf.d/python.d.conf | 2 ++ python.d/Makefile.am | 1 + python.d/dns_query_time.chart.py | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am index efe1f2a6..0df26053 100644 --- a/conf.d/Makefile.am +++ b/conf.d/Makefile.am @@ -28,6 +28,7 @@ dist_pythonconfig_DATA = \ python.d/apache_cache.conf \ python.d/bind_rndc.conf \ python.d/cpufreq.conf \ + python.d/dns_query_time.conf \ python.d/dovecot.conf \ python.d/elasticsearch.conf \ python.d/example.conf \ diff --git a/conf.d/python.d.conf b/conf.d/python.d.conf index 9ed346cd..22a18efa 100644 --- a/conf.d/python.d.conf +++ b/conf.d/python.d.conf @@ -31,6 +31,7 @@ log_interval: 3600 # bind_rndc: yes # cpufreq: yes # cpuidle: yes +# dns_query_time: yes # dovecot: yes # elasticsearch: yes @@ -52,6 +53,7 @@ gunicorn_log: no # memcached: yes # mysql: yes # nginx: yes +# nsd: yes # nginx_log has been replaced by web_log nginx_log: no diff --git a/python.d/Makefile.am b/python.d/Makefile.am index bfe28ff2..89ac2b78 100644 --- a/python.d/Makefile.am +++ b/python.d/Makefile.am @@ -18,6 +18,7 @@ dist_python_DATA = \ bind_rndc.chart.py \ cpufreq.chart.py \ cpuidle.chart.py \ + dns_query_time.chart.py \ dovecot.chart.py \ elasticsearch.chart.py \ example.chart.py \ diff --git a/python.d/dns_query_time.chart.py b/python.d/dns_query_time.chart.py index f3911750..527e5b8e 100644 --- a/python.d/dns_query_time.chart.py +++ b/python.d/dns_query_time.chart.py @@ -40,7 +40,7 @@ class Service(SimpleService): self.timeout = self.timeout if isinstance(self.timeout, int) else 4 self.update_every = self.timeout + 1 if self.update_every <= self.timeout else self.update_every - + if not all([self.domains, self.server_list, isinstance(self.server_list, str), isinstance(self.domains, str)]): self.error('server_list and domain_list can\'t be empty') -- 2.39.2