Module: check_mk
Branch: master
Commit: 0e9e4398e3e0a6f7f3d062c5c063cb399c4a02f8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e9e4398e3e0a6…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jun 9 09:54:47 2015 +0200
#1255 AIX Agent now supports fileinfo. Thanks to Falk Grunert (IBM)
---
.werks/1255 | 9 +++++++++
ChangeLog | 2 +-
agents/check_mk_agent.aix | 7 +++++++
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/1255 b/.werks/1255
new file mode 100644
index 0000000..eda6779
--- /dev/null
+++ b/.werks/1255
@@ -0,0 +1,9 @@
+Title: AIX Agent now supports fileinfo. Thanks to Falk Grunert (IBM)
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i2
+Date: 1433836441
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 38e0e59..2a6a890 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,12 +9,12 @@
* 2119 omd_status: check can now work in a cluster environment
* 2219 hr_cpu: Reworked check to use WATO rule allowing averaging and predictive
levels...
NOTE: Please refer to the migration notes!
+ * 1255 AIX Agent now supports fileinfo. Thanks to Falk Grunert (IBM)
* 2323 FIX: df: Fix new graphs for all filesystem checks in case of existing inode
information
* 2305 FIX: agent_vsphere, esx_vsphere_sensors: now able to handle sensor names with
semicolon...
* 2118 FIX: aix_sap_processlist: agent plugin now is more general to deal with
various AIX versions...
* 1253 FIX: printer_io,printer_supply: prevent discovery on not supported devices
* 2217 FIX: md: Fix handling of found and expected disks
- * 2306 FIX: windows agent: made 32 bit version working again (used old 32 bit
crosscompiler)...
Multisite:
* 2260 Improved load time of Check_MK GUI...
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index bb886b9..e7b8b48 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -238,6 +238,13 @@ then
done
fi
+# Fileinfo-Check: put patterns for files into /etc/check_mk/fileinfo.cfg
+if [ -r "$MK_CONFDIR/fileinfo.cfg" ]; then
+ echo '<<<fileinfo:sep(124)>>>'
+ date +%s
+ # simulate output of the Linux "stat -c "%n|%s|%Y" command
+ /usr/bin/perl -e 'printf "$_|%s|%s\n", (stat) [7,9] for @ARGV' $(cat
"$MK_CONFDIR/fileinfo.cfg")
+fi
echo '<<<local>>>'
if cd $LOCALDIR 2>/dev/null