Explorar o código

Fix check_oracle for RHEL6

https://bugzilla.redhat.com/show_bug.cgi?id=1752383
orangejuicy %!s(int64=6) %!d(string=hai) anos
pai
achega
47bae53c90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins-scripts/check_oracle.sh

+ 1 - 1
plugins-scripts/check_oracle.sh

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