diff --git a/check_remote_oracle b/check_remote_oracle index 1cc5a93..5acfede 100755 --- a/check_remote_oracle +++ b/check_remote_oracle @@ -72,10 +72,12 @@ RESET="\033[0;00m" DEBUG=0 +DEBUG=1 NOHEAD="SET HEAD OFF SET PAGES 0 -SET FEED OFF" +SET FEED OFF +SET TIMING OFF" ######################################################################## # @@ -578,7 +580,6 @@ group by username local AUX="${ORAENV} printf \"%s\n${QUERY}\" | ${SQLPLUS}" local RESSULT="$(${SSH} "${AUX}" | awk '{print $1}')" - if [[ "${RESSULT}" =~ .*(ORA\-[0-9]{1,}).* ]] ; then echo "CRITICAL - ${ORACLE_SID} Error getting sessions: ${BASH_REMATCH[1]}" return ${STATE_CRITICAL}