diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9d19c32f..548302c0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -130,6 +130,7 @@ STATUS() { else echo -e "${idsCL[Red]}Timeout${idsCL[Default]}" 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} fi done echo @@ -193,15 +194,12 @@ STATUS-CHECK(){ done fi #REPLICATION CHECK - declare -i timeout - timeout=`date --date='10 seconds' +%s` nid=1 for nip in "${NODE_HOSTS[@]}" do if [ "${nip}" = '10.5.10.51' ] && [ ! -z ${LOCAL_SERVICES+x} ]; then isreplhost=true; else isreplhost=false; fi if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then - for rcheck in "${REPL_CHECK[@]}" - do + for rcheck in "${REPL_CHECK[@]}"; do checked=false until [ "${checked}" = "" ]; do if [ "${NCMD}" = "" ]; then @@ -221,6 +219,7 @@ STATUS-CHECK(){ 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} fi done + echo fi nid=`expr $nid + 1` done