From 0bd9615bd28719a1219300a3c040ad3aa6f3dea1 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 18 Aug 2004 20:25:04 +0000 Subject: More specific test for sid (Paul Allen) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@886 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-scripts/check_oracle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 6351f8f6..2ac01ba2 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 "^${2}$" | grep -c pmon` if [ ${pmonchk} -ge 1 ] ; then echo "${2} OK - ${pmonchk} PMON process(es) running" exit $STATE_OK -- cgit v1.2.3