X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=python.d%2Fapache_cache.chart.py;h=3681a85112ec51762e245fe8b9a40ff05b87b933;hb=6b4ed885fc3e86ed009a8ea877f8a8ef3fc6610a;hp=85b0ee170ee089608f43af513a273acde0596367;hpb=509c50df3bce82fc6bae3974347619fa97591bad;p=netdata.git diff --git a/python.d/apache_cache.chart.py b/python.d/apache_cache.chart.py index 85b0ee17..3681a851 100644 --- a/python.d/apache_cache.chart.py +++ b/python.d/apache_cache.chart.py @@ -5,7 +5,7 @@ from base import LogService priority = 60000 -retries = 5 +retries = 60 # update_every = 3 ORDER = ['cache'] @@ -37,6 +37,10 @@ class Service(LogService): raw = self._get_raw_data() if raw is None: return None + elif not raw: + return {'hit': 0, + 'miss': 0, + 'other': 0} except (ValueError, AttributeError): return None