Module: check_mk
Branch: master
Commit: 867742b2f3feff096906f653226cf5bbc6f7428d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=867742b2f3feff…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 3 17:35:14 2014 +0100
Change detection of postfix in Linux agent
---
agents/check_mk_agent.linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 51b425b..48d6847 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -501,7 +501,7 @@ fi
# Only handle the last 6 lines (includes the summary line at the bottom and
# the last message in the queue. The last message is not used at the moment
# but it could be used to get the timestamp of the last message.
-if type mailq >/dev/null 2>&1 && [ -x /usr/sbin/postfix ] &&
getent passwd postfix >/dev/null 2>&1; then
+if type postconf ; then
echo '<<<postfix_mailq>>>'
echo -- \
$(du -kd0 $(postconf -h queue_directory)/deferred | awk '{print $1 }')
Kbytes in \