|
@@ -166,7 +166,7 @@ case "$cmd" in
|
|
|
}'
|
|
}'
|
|
|
;;
|
|
;;
|
|
|
--db)
|
|
--db)
|
|
|
- pmonchk=$(pgrep -f "(asm|ora|xe)_pmon_${2}$")
|
|
|
|
|
|
|
+ pmonchk=$(pgrep -f -c "(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"
|