Browse Source

check_oracle: Added support for Oracle 18c XE for --db

PMON process of oracle 18c XE is neither prefixed by asm_ nor by ora_ but by xe_
Peter Athaks 7 years ago
parent
commit
a3c5fab31a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins-scripts/check_oracle.sh

+ 1 - 1
plugins-scripts/check_oracle.sh

@@ -166,7 +166,7 @@ case "$cmd" in
     }'
     }'
     ;;
     ;;
 --db)
 --db)
-    pmonchk=$(pgrep -f "(asm|ora)_pmon_${2}$")
+    pmonchk=$(pgrep -f "(asm|ora|xe)_pmon_${2}$")
     if [ "${pmonchk}" -ge 1 ] ; then
     if [ "${pmonchk}" -ge 1 ] ; then
         echo "${2} OK - ${pmonchk} PMON process(es) running"
         echo "${2} OK - ${pmonchk} PMON process(es) running"
         exit "$STATE_OK"
         exit "$STATE_OK"