This commit is contained in:
2023-07-04 16:57:31 -05:00
parent bbd071ffb6
commit 48ed46c8b9
4 changed files with 32 additions and 17 deletions

View File

@@ -511,7 +511,7 @@ SITEINFO(){
cw_spc7=15
dl=110
MIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
var=${NTYPE}_HOSTS[@]
NODE_TYPE=""
for nip in "${!var}"; do

View File

@@ -16,7 +16,7 @@ STATUS(){
if [ "${ST_ACTION}" != "check" ]; then
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
fi
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
PH=${NTYPE}_HOSTS[0]
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
PH_CMD="ssh root@${!PH}"
@@ -115,7 +115,7 @@ STATUS(){
fi
########################
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
nid=1
dockers=${NTYPE}_DOCKERS_CHECK[@]
@@ -444,7 +444,7 @@ STATUS(){
DIVIDER; echo -e "${idsST[Reset]}"
echo -en " ${idsCL[LightCyan]}Starting processes to collect/monitor replication status : "
fi
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
PH=${NTYPE}_HOSTS[0]
PH_CMD="ssh root@${!PH}"
var=${NTYPE}_REPL_CHECK[@]
@@ -464,7 +464,7 @@ STATUS(){
done
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
PH=${NTYPE}_HOSTS[0]
PH_CMD="ssh root@${!PH}"
var=${NTYPE}_REPL_CHECK[@]
@@ -536,7 +536,7 @@ STATUS(){
#NHCMD="ssh root@${MYSQL_HOSTS[0]}"
#LBHCMD="ssh root@${LB_HOSTS[0]}"
#WHCMD="ssh root@${WEB_HOSTS[0]}"
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
PH=${NTYPE}_HOSTS[0]
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
PH_CMD="ssh root@${!PH}"
@@ -570,7 +570,7 @@ STATUS(){
#if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "freespace" ]; then
if [ "${ST_ACTION}" = "freespace" ]; then
if [ "${ST_ACTION}" != "repl" ] && [ "${ST_ACTION}" != "services" ]; then
for NTYPE in "${NODE_TYPES[@]}"; do
for NTYPE in "${NM_NODE_TYPES[@]}"; do
if [ "${ST_ACTION}" != "check" ]; then
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Node Free Space Scan${idsCL[Default]}"