Compare commits
No commits in common. "ad326d409a125b4530a477c9735a5e2c65ca7397" and "78252cc2def44b8a61974b26697da4a1d10e4e23" have entirely different histories.
ad326d409a
...
78252cc2de
@ -72,12 +72,10 @@ RESET="\033[0;00m"
|
||||
|
||||
|
||||
DEBUG=0
|
||||
DEBUG=1
|
||||
|
||||
NOHEAD="SET HEAD OFF
|
||||
SET PAGES 0
|
||||
SET FEED OFF
|
||||
SET TIMING OFF"
|
||||
SET FEED OFF"
|
||||
|
||||
########################################################################
|
||||
#
|
||||
@ -580,6 +578,7 @@ 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}
|
||||
@ -1796,11 +1795,6 @@ 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}'"
|
||||
|
Loading…
Reference in New Issue
Block a user