From 61cbd1252c997c1cb180a91642b6174408e267e3 Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Wed, 1 Dec 2004 20:09:59 +0000
Subject: Fixed pmon process checking from a change I made earlier

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@963 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh
index 1a23eb9..9956491 100755
--- a/plugins-scripts/check_oracle.sh
+++ b/plugins-scripts/check_oracle.sh
@@ -158,7 +158,7 @@ case "$cmd" in
     }'
     ;;
 --db)
-    pmonchk=`ps -ef | grep -v grep | grep ${2} | grep -c pmon`
+    pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"`
     if [ ${pmonchk} -ge 1 ] ; then
 	echo "${2} OK - ${pmonchk} PMON process(es) running"
 	exit $STATE_OK
-- 
cgit v0.10-9-g596f

