Module: check_mk
Branch: master
Commit: 6c1496f73571e7d41497ef832b6dc9fab97310e3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6c1496f73571e7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Feb 3 10:24:44 2016 +0100
#2988 check_mk_agent.aix: now provides infos for postfix mailq check
---
.werks/2988 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.aix | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/.werks/2988 b/.werks/2988
new file mode 100644
index 0000000..47c58f1
--- /dev/null
+++ b/.werks/2988
@@ -0,0 +1,9 @@
+Title: check_mk_agent.aix: now provides infos for postfix mailq check
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1454491443
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index a72c685..154ae82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -105,6 +105,7 @@
* 2985 MongoDB: Introduced agent plugin and some checks...
* 2457 mssql_counters.sqlstats: New check to monitor several rates from the SQL
statistics object
* 2941 tinkerforge, tinkerforge.ambient, tinkerforge.humidity, tinkerforge.motion,
tinkerforge.temperature: new checks to monitor tinkerforge sensors...
+ * 2988 check_mk_agent.aix: now provides infos for postfix mailq check
* 2660 FIX: fixed windows agent using the wrong working directory...
* 2664 FIX: ps: Speedup in situation with many matching processes...
* 2661 FIX: windows agent: fixed incomplete process list...
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 7a4f35f..31be60b 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -217,6 +217,11 @@ then
$(which trd) -s
fi
+if [ -x /usr/sbin/sendmail ] ; then
+ echo '<<<postfix_mailq>>>';
+ mailq 2>&1 | sed 's/^[^:]*: \(.*\)/\1/' | tail -n 6
+fi
+
# uptime formats
# 12:55pm up 105 days, 21 hrs, 2 users, load average: 0.26, 0.26, 0.26 --> 9147600
# 1:41pm up 105 days, 21:46, 2 users, load average: 0.28, 0.28, 0.27 --> 9150360