add ;norefresh option to url check
Ilya committed
Jan 11, 2017 at 16:41 UTC
420a0180a1b99ed095f36ab5e6fa39ab198ccf67
1 file changed
+2
-2
python.d/haproxy.chart.py
+2
-2
@@ -68,8 +68,8 @@ class Service(UrlService, SocketService):
68
if self.configuration.get('url'):
69
self.poll_method = self.poll_method[0]
70
url = self.configuration.get('url')
71
- if not url.endswith(';csv'):
72
- self.error('Bad url(%s). Must be http://<ip.address>:<port>/<url>;csv' % url)
71
+ if not url.endswith(';csv;norefresh'):
72
+ self.error('Bad url(%s). Must be http://<ip.address>:<port>/<url>;csv;norefresh' % url)
73
return False
74
elif self.configuration.get('socket'):
75
self.poll_method = self.poll_method[1]