From 877309adf3f3f3d076f657b15c9233dec628b075 Mon Sep 17 00:00:00 2001 From: dodger Date: Mon, 23 May 2022 17:56:04 +0200 Subject: [PATCH] changes --- check_remote_oracle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}