Module: check_mk
Branch: master
Commit: 58f5ce566298fce6502376a073d8b557807de720
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58f5ce566298fc…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Wed Dec 12 11:40:49 2018 +0100
6872 AIX agent: added inodes information to df section
In case /usr/opt/freeware/bin/df is available, the Check_MK agent for AIX also reports
inodes usage now.
Change-Id: Ib9422cf1a8b8d6b7f87eac78e0a5e5548748a8fc
---
.werks/6872 | 10 ++++++++++
agents/check_mk_agent.aix | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/.werks/6872 b/.werks/6872
new file mode 100644
index 0000000..0a577a4
--- /dev/null
+++ b/.werks/6872
@@ -0,0 +1,10 @@
+Title: AIX agent: added inodes information to df section
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1544611035
+Class: feature
+
+In case /usr/opt/freeware/bin/df is available, the Check_MK agent for AIX also reports
inodes usage now.
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 3436368..9e0ba21 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -140,7 +140,15 @@ echo "LocalDirectory: $LOCALDIR"
echo '<<<df>>>'
if [ -x /usr/opt/freeware/bin/df ] ; then
excludefs="-x smbfs -x cifs -x iso9660 -x udf -x nfsv4 -x nfs -x mvfs -x zfs -x
cdrfs"
+ # shellcheck disable=SC2086
/usr/opt/freeware/bin/df -PTlk $excludefs | sed 1d
+
+ # df inodes information
+ echo '<<<df>>>'
+ echo '[df_inodes_start]'
+ # shellcheck disable=SC2086
+ /usr/opt/freeware/bin/df -PTli $excludefs | sed 1d
+ echo '[df_inodes_end]'
else
df -kP | sed 's/ / - /' | grep -v ^/proc | grep -v ^Filesystem | grep -v :
fi