diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8862b680..6ea665ab 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -270,7 +270,9 @@ STATUS(){ var=${NTYPE}_HOSTS[@] for nip in "${!var}"; do + echo "CHECK: ${NTYPE} - ${nip}" + if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${nip}" != "${!PH}" ]; then if [ "${ST_ACTION}" != "check" ]; then echo -e " ${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node1 (${!PH}) <--> ${idsST[Bold]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}" @@ -288,7 +290,9 @@ STATUS(){ if [ "${ST_ACTION}" != "check" ]; then c=0; cw=30; spc='' spc1=${cw}-${#REPL_DESC[${rcheck}]} + echo "CHECK: ${NTYPE} - ${!PH} - ${REPL_CHECKS[${rcheck}]}" + # if [ "${rcheck}" = "nextcloud-data" ] || [ "${rcheck}" = "nextcloud-www" ]; then # timeout=`date --date='2 minutes' +%s` # else