Module: check_mk
Branch: master
Commit: 8a792574723ad193eaaf355cc6fa5f22708b0ec9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8a792574723ad1…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Fri Oct 14 15:48:51 2016 +0200
3937 FIX check_mk_agent.aix: fixed hadling of mailq command
---
.werks/3937 | 10 ++++++++++
ChangeLog | 1 +
agents/check_mk_agent.aix | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3937 b/.werks/3937
new file mode 100644
index 0000000..71e26d3
--- /dev/null
+++ b/.werks/3937
@@ -0,0 +1,10 @@
+Title: check_mk_agent.aix: fixed hadling of mailq command
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i2
+Date: 1476452143
+
+
diff --git a/ChangeLog b/ChangeLog
index a002661..c122b16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
* 3958 FIX: netapp_qtree_quota: fixed graph scaling
* 3823 FIX: The windows agent were unable to execute powershell, python and pearl
scripts
* 3824 FIX: netapp_api_snapvault: fixed duplicate service when item name contains a $
character...
+ * 3937 FIX: check_mk_agent.aix: fixed hadling of mailq command
Multisite:
* 3897 FIX: Fixed possible exception in raw edition when rendering graphs
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 194a017..2b6bd44 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -27,7 +27,7 @@
# force load of environment
if [ -e $HOME/.profile ]
then
- . $HOME/.profile
+ . $HOME/.profile >/dev/null 2>&1
fi
# Remove locale settings to eliminate localized outputs where possible
@@ -221,7 +221,7 @@ fi
if [ -x /usr/sbin/sendmail ] ; then
echo '<<<postfix_mailq>>>';
- mailq 2>&1 | sed 's/^[^:]*: \(.*\)/\1/' | tail -n 6
+ mailq 2>&1 | tail -n 6
fi
# uptime formats