fix postfix (no mails error)
paulfantom committed
Jul 14, 2016 at 00:39 UTC
ca01e98cb87c6dd18f9ccede1e42495d85558236
2 files changed
+4
plugins.d/python.d.plugin
+1
@@ -484,6 +484,7 @@ def run():
484
# parse passed command line arguments
485
modules = parse_cmdline(MODULES_DIR, *sys.argv)
486
msg.DEBUG_FLAG = DEBUG_FLAG
487
+ modules = ['postfix']
488
msg.info("MODULES_DIR='" + MODULES_DIR +
489
"', CONFIG_DIR='" + CONFIG_DIR +
490
"', UPDATE_EVERY=" + str(BASE_CONFIG['update_every']) +
python.d/python_modules/base.py
+3
@@ -642,6 +642,9 @@ class ExecutableService(SimpleService):
642
for line in p.stdout.readlines():
643
data.append(str(line.decode()))
644
645
+ if len(data) == 0:
646
+ return None
647
+
648
return data
649
650
def check(self):