summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins-scripts/check_oracle.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh
index 2a8ab21..b86ce1d 100755
--- a/plugins-scripts/check_oracle.sh
+++ b/plugins-scripts/check_oracle.sh
@@ -164,6 +164,7 @@ case "$cmd" in
164 ;; 164 ;;
165--db) 165--db)
166 pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"` 166 pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"`
167 pmonchk=$(($pmonchk+`ps -ef | grep -v grep | grep -c "asm_pmon_${2}$"`))
167 if [ ${pmonchk} -ge 1 ] ; then 168 if [ ${pmonchk} -ge 1 ] ; then
168 echo "${2} OK - ${pmonchk} PMON process(es) running" 169 echo "${2} OK - ${pmonchk} PMON process(es) running"
169 exit $STATE_OK 170 exit $STATE_OK