From: Ilya Date: Sat, 25 Mar 2017 18:09:47 +0000 (+0900) Subject: dns_query_time plugin: makefiles and python.d.conf update X-Git-Tag: ab-debian_0.20170327.01-0ab1~1^2~3^2~1 X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=791f0dfa2b6050b4464800b762e1ac385c789a62;p=netdata.git dns_query_time plugin: makefiles and python.d.conf update --- 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')