[checkmk-commits] 6753 mk_oracle: Added support for HP-UX

Marcel Arentz ma at mathias-kettner.de
Fri Nov 16 10:50:43 CET 2018


Module: check_mk
Branch: master
Commit: 461b3cb95bd25a76a2ee4e80e0e2a948f7b2b469
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=461b3cb95bd25a76a2ee4e80e0e2a948f7b2b469

Author: Marcel Arentz <ma at mathias-kettner.de>
Date:   Wed Nov 14 09:16:13 2018 +0100

6753 mk_oracle: Added support for HP-UX

Change-Id: I789dafdd5fbcd29b99ef68e1a726e6cbfff034c9

---

 .werks/6753              | 10 ++++++++++
 agents/plugins/mk_oracle |  6 ++++++
 2 files changed, 16 insertions(+)

diff --git a/.werks/6753 b/.werks/6753
new file mode 100644
index 0000000..fa33caf
--- /dev/null
+++ b/.werks/6753
@@ -0,0 +1,10 @@
+Title: mk_oracle: Added support for HP-UX
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1542183332
+Class: feature
+
+
diff --git a/agents/plugins/mk_oracle b/agents/plugins/mk_oracle
index a87de54..749d631 100755
--- a/agents/plugins/mk_oracle
+++ b/agents/plugins/mk_oracle
@@ -164,6 +164,12 @@ set_os_env () {
         STATCX='file_mtime'
         STATCY='file_mtime'
 
+    elif [ "$OS_TYPE" = 'HP-UX' ]; then
+        GREP=$(which grep)
+        AWK=$(which awk)
+        STATCX="perl -le 'print((stat shift)[8])'"
+        STATCY="perl -le 'print((stat shift)[9])'"
+
     else
         logging -c "[set_os_env]" "Unsupported OS: ${OS_TYPE}"
         echo "Unsupported OS: $OS_TYPE" >&2



More information about the checkmk-commits mailing list