Module: check_mk
Branch: master
Commit: c3a8629da4c51550cbacb8d117a697d0cd9802c4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c3a8629da4c515…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Oct 19 15:40:35 2016 +0200
fixed postmulti again
---
agents/check_mk_agent.linux | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index ffd9455..0e8fcbb 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -667,9 +667,10 @@ elif [ -x /usr/sbin/ssmtp ] ; then
fi
+# postfix would write to stderr but only if it's a tty
if type postmulti >/dev/null ; then
echo "<<<postfix_mailq_status:sep(58)>>>"
- script -c 'postmulti -p status'
+ script -qfc 'postmulti -p status' /dev/null
fi