Module: check_mk
Branch: master
Commit: c37e8679f68c3b8695a04b6914b2d1f87000fac7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c37e8679f68c3b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Nov 2 10:01:42 2017 +0100
5441 FIX mk_oracle: Werk 5321 introduced usage of nawk for SunOS but was implemented
incorrectly for Linux
Change-Id: Ib2c12aafb3e1343daf42c0895edf0fc31c680ef9
---
.werks/5441 | 11 +++++++++++
agents/plugins/mk_oracle | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/5441 b/.werks/5441
new file mode 100644
index 0000000..2d14343
--- /dev/null
+++ b/.werks/5441
@@ -0,0 +1,11 @@
+Title: mk_oracle: Werk 5321 introduced usage of nawk for SunOS but was implemented
incorrectly for Linux
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1509613020
+
+
diff --git a/agents/plugins/mk_oracle b/agents/plugins/mk_oracle
index 5259008..c06679b 100755
--- a/agents/plugins/mk_oracle
+++ b/agents/plugins/mk_oracle
@@ -749,7 +749,6 @@ function set_osenv () {
GREP=$(which grep)
STATCX='stat -c %X'
STATCY='stat -c %Y'
- AWK=$(which nawk)
elif [ ${ostype} = 'SunOS' ] ; then
@@ -767,6 +766,8 @@ function set_osenv () {
STATCX='file_mtime'
STATCY='file_mtime'
+ AWK=$(which nawk)
+
else
ostype="unknown OS: "${ostype}
fi