Module: check_mk
Branch: master
Commit: e91ab4c155a8e190299baf734e3371f372290993
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e91ab4c155a8e1…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Oct 29 09:56:54 2014 +0100
#1195 AIX Agent now also supports monitoring of cifs mounts
---
.werks/1195 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.aix | 7 +++++++
3 files changed, 17 insertions(+)
diff --git a/.werks/1195 b/.werks/1195
new file mode 100644
index 0000000..cc34016
--- /dev/null
+++ b/.werks/1195
@@ -0,0 +1,9 @@
+Title: AIX Agent now also supports monitoring of cifs mounts
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1414572984
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index e6f674c..43ccf0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -83,6 +83,7 @@
* 1191 Linux agent now also sends information about tmpfs...
* 1193 ps: Manual Checks can now use RegEx for user matching...
* 1194 Linux Agent now supports monitoring of cifs mounts
+ * 1195 AIX Agent now also supports monitoring of cifs mounts
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index d5d3e11..92ec175 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -97,6 +97,13 @@ if type stat >/dev/null 2>&1 ; then
waitmax 2 stat -f -c '"'$MP' ok - - - -"' "$MP"
|| \
echo "$MP hanging 0 0 0 0"
done
+ echo '<<<cifsmounts>>>'
+ mount | grep ' cifs' | awk '{print $3;}' | \
+ while read MP
+ do
+ waitmax 2 stat -f -c '"'$MP' ok - - - -"' "$MP"
|| \
+ echo "$MP hanging 0 0 0 0"
+ done
fi
echo '<<<ps>>>'