diff --git a/inc/status.inc b/inc/status.inc index 911a0099..46bccff8 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -321,14 +321,14 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${ if [ ! -f ${NM_TMPFOLDER}/.replclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replclean)) -ge 10800 ]; then for NTYPE in "${NM_NODE_TYPES[@]}"; do - echo "${NTYPE} Nodes ---" PH=${NTYPE}_HOSTS[0] if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then - PH_CMD="ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${!PH}" var=${NTYPE}_REPL_CHECK[@] if [ ! -z ${!var+x} ]; then + PH_CMD="ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${!PH}" + echo "${NTYPE} Nodes ---" for rcheck in "${!var}"; do - echo "${rcheck} folder" + echo "${rcheck} folder (${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl)" if [ $(${PH_CMD} 'ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl 2>/dev/null | wc -l') -gt 0 ]; then for replfile in $(${PH_CMD} ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl); do echo -en "${replfile} : "