From 1baf11d3af00e35a1540003232abd80ec92f4af0 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Sun, 27 May 2007 14:49:54 +0000 Subject: check_oracle does not need a valid ORACLE_HOME if called with --db. Thanks to Jason Martin (#1505551) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1719 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-scripts/check_oracle.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins-scripts/check_oracle.sh') diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 02ca1114..56962e37 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh @@ -118,9 +118,11 @@ fi # 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 -- cgit v1.2.3