Update status.inc

This commit is contained in:
2023-12-06 19:30:07 -06:00
parent 9a524dd29d
commit 1890b28409

View File

@@ -145,27 +145,7 @@ STATUS(){
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} Replication Status Between the Primary and Secondary Nodes${idsCL[Default]}"
DIVIDER; echo -e "${idsST[Reset]}"
# echo -en " ${idsCL[LightCyan]}Starting processes to collect/monitor replication status : "
# fi
# for NTYPE in "${ntypesel[@]}"; do
# PH=${NTYPE}_HOSTS[0]
# PH_CMD="ssh root@${!PH}"
# var=${NTYPE}_REPL_CHECK[@]
# if [ ! -z ${!var+x} ]; then
# var=${NTYPE}_HOSTS[@]
# for nip in "${!var}"; do
# if [[ "${RUN_NODE_IP}" != *"${nip}"* ]] && [ "${nip}" != "${!PH}" ]; then
# if [ ! -f ${NM_FOLDER}/${!PH}.down ] && [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
# var2=${NTYPE}_REPL_CHECK[@]
# for rcheck in "${!var2}"; do
# REPLCHECK "${rcheck}" "${nip}" "${PH_CMD}" "${ST_ACTION}" & >/dev/null 2>&1
# done
# fi
# fi
# done
# fi
# done
# [ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
fi
for NTYPE in "${ntypesel[@]}"; do
PH=${NTYPE}_HOSTS[0]