[Nagiosplug-checkins] nagiosplug/plugins-scripts check_oracle.sh, 1.15, 1.16

Matthias Eble psychotrahe at users.sourceforge.net
Sun May 27 16:49:56 CEST 2007


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

Modified Files:
	check_oracle.sh 
Log Message:
check_oracle does not need a valid ORACLE_HOME if called with --db. Thanks to Jason Martin (#1505551)


Index: check_oracle.sh
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_oracle.sh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- check_oracle.sh	26 Oct 2006 21:10:20 -0000	1.15
+++ check_oracle.sh	27 May 2007 14:49:54 -0000	1.16
@@ -118,9 +118,11 @@
 # Last resort
 [ -z "$ORACLE_HOME" -a -d $PROGPATH/oracle ] && ORACLE_HOME=$PROGPATH/oracle
 
-if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then
-	echo "Cannot determine ORACLE_HOME for sid $2"
-	exit $STATE_UNKNOWN
+if [ "$cmd" != "--db" ]; then
+	if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then
+		echo "Cannot determine ORACLE_HOME for sid $2"
+		exit $STATE_UNKNOWN
+	fi
 fi
 PATH=$PATH:$ORACLE_HOME/bin
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib





More information about the Commits mailing list