This commit is contained in:
dodger 2022-05-23 17:56:04 +02:00
parent 78252cc2de
commit 877309adf3
Signed by: dodger
GPG Key ID: F6701F6CB4D1C826

View File

@ -72,10 +72,12 @@ RESET="\033[0;00m"
DEBUG=0 DEBUG=0
DEBUG=1
NOHEAD="SET HEAD OFF NOHEAD="SET HEAD OFF
SET PAGES 0 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 AUX="${ORAENV} printf \"%s\n${QUERY}\" | ${SQLPLUS}"
local RESSULT="$(${SSH} "${AUX}" | awk '{print $1}')" local RESSULT="$(${SSH} "${AUX}" | awk '{print $1}')"
if [[ "${RESSULT}" =~ .*(ORA\-[0-9]{1,}).* ]] ; then if [[ "${RESSULT}" =~ .*(ORA\-[0-9]{1,}).* ]] ; then
echo "CRITICAL - ${ORACLE_SID} Error getting sessions: ${BASH_REMATCH[1]}" echo "CRITICAL - ${ORACLE_SID} Error getting sessions: ${BASH_REMATCH[1]}"
return ${STATE_CRITICAL} return ${STATE_CRITICAL}