[Nagiosplug-checkins] nagiosplug/plugins-scripts check_oracle.sh,1.13,1.14

Ton Voon tonvoon at users.sourceforge.net
Wed Dec 1 12:11:05 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16773

Modified Files:
	check_oracle.sh 
Log Message:
Fixed pmon process checking from a change I made earlier


Index: check_oracle.sh
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_oracle.sh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- check_oracle.sh	1 Dec 2004 03:26:59 -0000	1.13
+++ check_oracle.sh	1 Dec 2004 20:09:59 -0000	1.14
@@ -158,7 +158,7 @@
     }'
     ;;
 --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





More information about the Commits mailing list