]> arthur.barton.de Git - netdata.git/blobdiff - python.d/apache_cache.chart.py
mongodb_plugin: python README update
[netdata.git] / python.d / apache_cache.chart.py
index a05b4ba4a48fc06523c8556c9ee0c6a2025ca1fb..3681a85112ec51762e245fe8b9a40ff05b87b933 100644 (file)
@@ -1,12 +1,12 @@
 # -*- coding: utf-8 -*-
-# Description: apache cache netdata python.d plugin
+# Description: apache cache netdata python.d module
 # Author: Pawel Krupa (paulfantom)
 
 from base import LogService
 
 priority = 60000
-retries = 5
-update_every = 3
+retries = 60
+update_every = 3
 
 ORDER = ['cache']
 CHARTS = {
@@ -34,9 +34,13 @@ class Service(LogService):
         :return: dict
         """
         try:
-            raw = self._get_data()
+            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