Module: check_mk
Branch: master
Commit: d0aedbf9c666ffe5eeacaef2bcaa4c86bf708992
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d0aedbf9c666ff…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Aug 10 15:56:48 2017 +0200
5096 FIX mk_oracle_crs: crs_stat command is deprecated since Oracle 11gR2; Now the plugin
handles that correctly
Change-Id: I28aae2bbab236ced481a522f4a1de728bd56d1a8
---
.werks/5096 | 11 +++++++++++
agents/plugins/mk_oracle_crs | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/5096 b/.werks/5096
new file mode 100644
index 0000000..51462cc
--- /dev/null
+++ b/.werks/5096
@@ -0,0 +1,11 @@
+Title: mk_oracle_crs: crs_stat command is deprecated since Oracle 11gR2; Now the plugin
handles that correctly
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1502373102
+
+
diff --git a/agents/plugins/mk_oracle_crs b/agents/plugins/mk_oracle_crs
index 759b9f6..15efd85 100755
--- a/agents/plugins/mk_oracle_crs
+++ b/agents/plugins/mk_oracle_crs
@@ -81,7 +81,6 @@ function printcrsdata() {
echo "<<<oracle_crs_version:sep(124)>>>"
crs_version=$($CRSCTL query crs releaseversion)
- crs_version_short=$(echo $crs_version | cut -d"[" -f2- | cut
-d"." -f-2)
echo $crs_version
echo "<<<oracle_crs_voting>>>"
@@ -93,7 +92,8 @@ function printcrsdata() {
echo "nodename|"$OLS_NODENAME
- if [ $crs_version_short = '11.2' ] ; then
+ crs_version_short=$(echo $crs_version | cut -d"[" -f2- | cut
-d"." -f-2 | sed 's/\.//')
+ if [ $(($crs_version_short)) -ge 112 ] ; then
$CRSCTL stat res -v -n $OLS_NODENAME -init | grep -E $resourcefilter | sed
"s/^/csslocal\|/"
for nodelist in $($OLSNODES)
do