]> arthur.barton.de Git - netdata.git/commitdiff
add ;norefresh option to url check
authorIlya <ilyamaschenko@gmail.com>
Wed, 11 Jan 2017 07:41:00 +0000 (16:41 +0900)
committerIlya <ilyamaschenko@gmail.com>
Wed, 11 Jan 2017 07:41:00 +0000 (16:41 +0900)
python.d/haproxy.chart.py

index d64366413e0a1a5c1fcb7043a2499926e7d427ef..c2dd20e6fda12bd31595ab680efcdc71075c6883 100644 (file)
@@ -68,8 +68,8 @@ class Service(UrlService, SocketService):
         if self.configuration.get('url'):
             self.poll_method = self.poll_method[0]
             url = self.configuration.get('url')
-            if not url.endswith(';csv'):
-                self.error('Bad url(%s). Must be http://<ip.address>:<port>/<url>;csv' % url)
+            if not url.endswith(';csv;norefresh'):
+                self.error('Bad url(%s). Must be http://<ip.address>:<port>/<url>;csv;norefresh' % url)
                 return False
         elif self.configuration.get('socket'):
             self.poll_method = self.poll_method[1]