]> arthur.barton.de Git - netdata.git/commitdiff
fix postfix (no mails error)
authorpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 22:39:46 +0000 (00:39 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 13 Jul 2016 22:39:46 +0000 (00:39 +0200)
plugins.d/python.d.plugin
python.d/python_modules/base.py

index f5738e6e3257e09b694f2ea1205d3c5b6a0e1ea9..bddcd6e5dc3e0df793681a5f3df4f963349324e4 100755 (executable)
@@ -484,6 +484,7 @@ def run():
     # parse passed command line arguments
     modules = parse_cmdline(MODULES_DIR, *sys.argv)
     msg.DEBUG_FLAG = DEBUG_FLAG
+    modules = ['postfix']
     msg.info("MODULES_DIR='" + MODULES_DIR +
              "', CONFIG_DIR='" + CONFIG_DIR +
              "', UPDATE_EVERY=" + str(BASE_CONFIG['update_every']) +
index 077b612917da6c3db94731c6694826ac6a75b94e..93467386d8e22247bb26be5446ccb008bea435b6 100644 (file)
@@ -642,6 +642,9 @@ class ExecutableService(SimpleService):
         for line in p.stdout.readlines():
             data.append(str(line.decode()))
 
+        if len(data) == 0:
+            return None
+
         return data
 
     def check(self):