Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 12:54:51 -06:00
parent 11ed98ecaf
commit d661bf13a8

View File

@@ -184,7 +184,7 @@ STATUS-CHECK(){
fi
#REPLICATION CHECK
declare -i timeout
timeout=`date --date='30 seconds' +%s`
timeout=`date --date='5 seconds' +%s`
nid=1
for nip in "${NODE_HOSTS[@]}"
do
@@ -204,11 +204,11 @@ STATUS-CHECK(){
break
fi
done
if [ "${timeout}" = "true" ]; then
if [ "${timeout}" != "true" ]; then
rm -f ${FOLDER}/${nip}-${rcheck}.down
elif [ ! -f ${FOLDER}/${nip}-${rcheck}.down ]
touch ${FOLDER}/${nip}-${rcheck}.down
echo "Timeout occurred in waiting for replication between primary node and iDS-Node${nid} (${nip}) for the replicated folder of '${rcheck}'." | mail -s "Status-Check" ${STATUS_CHECK_EMAIL}
else
rm -f ${FOLDER}/${nip}-${rcheck}.down
fi
done
echo