diff --git a/check_remote_oracle b/check_remote_oracle index 5acfede..b294e84 100755 --- a/check_remote_oracle +++ b/check_remote_oracle @@ -1796,6 +1796,11 @@ fi SSH="ssh ${ORACLE_OSUSER}@${REMOTE_SERVER} -xq" get_remote_oraclehome +RES=$? +if [[ ${RES} -ne 0 ]] ; then + echo "CRITICAL - ORACLE_HOME not found" + exit ${STATE_CRITICAL} +fi # SQLPLUS FOR CONNECTIONS SQLPLUS="sqlplus -s '${ORACLEUSER}/${ORACLEUSERPASSWORD}@${ORACLE_SID}'"