]> arthur.barton.de Git - netdata.git/blobdiff - python.d/postfix.chart.py
fix postfix (no mails error)
[netdata.git] / python.d / postfix.chart.py
index 3f82715dfb769ededab767bebe881217c531a564..471d4f3fabcc277cecd936015223721e555947fa 100644 (file)
@@ -40,6 +40,10 @@ class Service(ExecutableService):
         """
         try:
             raw = self._get_raw_data()[-1].split(' ')
+            if raw[0] == 'Mail' and raw[1] == 'queue':
+                return {'emails': 0,
+                        'size': 0}
+
             return {'emails': raw[4],
                     'size': raw[1]}
         except (ValueError, AttributeError):