Code

Fix for similar dataabase sids (Carole Verdon)
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 18 Aug 2004 19:46:18 +0000 (19:46 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 18 Aug 2004 19:46:18 +0000 (19:46 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@883 f882894a-f735-0410-b71e-b25c423dba1c

plugins-scripts/check_oracle.sh

index 41e9dcefb356c71bc7fa881bba50db649a04714b..6351f8f6bb2e33ae147225153b4ca71e07340314 100755 (executable)
@@ -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