Compare commits

..

No commits in common. "004b3d9171406b45dc0f4c8905d669437091467e" and "0243024b96d037fc5078b933cb60c5219ce1e1fd" have entirely different histories.

2 changed files with 2 additions and 13 deletions

View File

@ -1,5 +0,0 @@
# SC2317: Command appears to be unreachable. <- unused functions on the template
# SC2034: OPTION appears unused. Verify use <- unused variable on the template
# SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location. <- ${CONFIGFILE}
#disable=SC2317,SC2034,SC1090
disable=SC2034

View File

@ -72,12 +72,10 @@ 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"
######################################################################## ########################################################################
# #
@ -580,6 +578,7 @@ 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}
@ -1796,11 +1795,6 @@ fi
SSH="ssh ${ORACLE_OSUSER}@${REMOTE_SERVER} -xq" SSH="ssh ${ORACLE_OSUSER}@${REMOTE_SERVER} -xq"
get_remote_oraclehome get_remote_oraclehome
RES=$?
if [[ ${RES} -ne 0 ]] ; then
echo "CRITICAL - ORACLE_HOME not found"
exit ${STATE_CRITICAL}
fi
# SQLPLUS FOR CONNECTIONS # SQLPLUS FOR CONNECTIONS
SQLPLUS="sqlplus -s '${ORACLEUSER}/${ORACLEUSERPASSWORD}@${ORACLE_SID}'" SQLPLUS="sqlplus -s '${ORACLEUSER}/${ORACLEUSERPASSWORD}@${ORACLE_SID}'"