]> arthur.barton.de Git - netdata.git/blobdiff - python.d/squid.chart.py
fix squid autodetection
[netdata.git] / python.d / squid.chart.py
index 71327c6ebcd288e0df0d9452fcb1a3e2b10c1d8f..884adc8086e7a8f45873aaed5fc5b91219d29f89 100644 (file)
@@ -66,6 +66,8 @@ class Service(SocketService):
                     tmp = row.split("=")
                     data[tmp[0].replace('.', '_').strip(' ')] = int(tmp[1])
 
+            if len(data) == 0:
+                return None
             return data
         except (ValueError, AttributeError):
             return None
@@ -98,6 +100,7 @@ class Service(SocketService):
         #                 return True
         # else:
         if True:
+            self.error("NEED: " + str(self._get_data()))
             if self._get_data() is not None:
                 return True
             else: