Update status.inc
This commit is contained in:
@@ -25,16 +25,12 @@ STATUS(){
|
|||||||
ntypesel=(${NM_NODE_TYPES[@]})
|
ntypesel=(${NM_NODE_TYPES[@]})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for NTYPE in "${ntypesel[@]}"; do
|
|
||||||
echo "HERE: $NTYPE"
|
|
||||||
done
|
|
||||||
|
|
||||||
########################
|
########################
|
||||||
if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "xx" ]; then
|
if [ "${ST_ACTION}" == "report" ] || [ "${ST_ACTION}" == "repl" ] || [ "${ST_ACTION}" == "check" ] || [ "${ST_ACTION}" == "" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Setting up replication checks ... ${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
PH=${NTYPE}_HOSTS[0]
|
PH=${NTYPE}_HOSTS[0]
|
||||||
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
|
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
|
||||||
PH_CMD="ssh root@${!PH}"
|
PH_CMD="ssh root@${!PH}"
|
||||||
@@ -133,7 +129,7 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
########################
|
########################
|
||||||
|
|
||||||
for NTYPE in "${NM_NODE_TYPESsss[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
nid=1
|
nid=1
|
||||||
|
|
||||||
dockers=${NTYPE}_DOCKERS_CHECK[@]
|
dockers=${NTYPE}_DOCKERS_CHECK[@]
|
||||||
@@ -490,7 +486,7 @@ STATUS(){
|
|||||||
DIVIDER; echo -e "${idsST[Reset]}"
|
DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
echo -en " ${idsCL[LightCyan]}Starting processes to collect/monitor replication status : "
|
echo -en " ${idsCL[LightCyan]}Starting processes to collect/monitor replication status : "
|
||||||
fi
|
fi
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
PH=${NTYPE}_HOSTS[0]
|
PH=${NTYPE}_HOSTS[0]
|
||||||
PH_CMD="ssh root@${!PH}"
|
PH_CMD="ssh root@${!PH}"
|
||||||
var=${NTYPE}_REPL_CHECK[@]
|
var=${NTYPE}_REPL_CHECK[@]
|
||||||
@@ -510,7 +506,7 @@ STATUS(){
|
|||||||
done
|
done
|
||||||
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
|
[ "${ST_ACTION}" != "check" ] && echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
|
||||||
|
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
PH=${NTYPE}_HOSTS[0]
|
PH=${NTYPE}_HOSTS[0]
|
||||||
PH_CMD="ssh root@${!PH}"
|
PH_CMD="ssh root@${!PH}"
|
||||||
var=${NTYPE}_REPL_CHECK[@]
|
var=${NTYPE}_REPL_CHECK[@]
|
||||||
@@ -599,7 +595,7 @@ It was down for $(SHOW_TIME ${toterrtime})"
|
|||||||
#NHCMD="ssh root@${NM_HOSTS['MYSQL'][0]}"
|
#NHCMD="ssh root@${NM_HOSTS['MYSQL'][0]}"
|
||||||
#LBHCMD="ssh root@${NM_HOSTS['LB'][0]}"
|
#LBHCMD="ssh root@${NM_HOSTS['LB'][0]}"
|
||||||
#WHCMD="ssh root@${NM_HOSTS['WEB'][0]}"
|
#WHCMD="ssh root@${NM_HOSTS['WEB'][0]}"
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
PH=${NTYPE}_HOSTS[0]
|
PH=${NTYPE}_HOSTS[0]
|
||||||
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
|
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
|
||||||
PH_CMD="ssh root@${!PH}"
|
PH_CMD="ssh root@${!PH}"
|
||||||
@@ -634,7 +630,7 @@ It was down for $(SHOW_TIME ${toterrtime})"
|
|||||||
#if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "freespace" ]; then
|
#if [ "${ST_ACTION}" = "" ] || [ "${ST_ACTION}" = "report" ] || [ "${ST_ACTION}" = "freespace" ]; then
|
||||||
if [ "${ST_ACTION}" = "freespace" ]; then
|
if [ "${ST_ACTION}" = "freespace" ]; then
|
||||||
if [ "${ST_ACTION}" != "repl" ] && [ "${ST_ACTION}" != "services" ]; then
|
if [ "${ST_ACTION}" != "repl" ] && [ "${ST_ACTION}" != "services" ]; then
|
||||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
for NTYPE in "${ntypesel[@]}"; do
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -e "${idsST[Bold]}"; DIVIDER
|
echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Node(s) Free Space Scan${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Node(s) Free Space Scan${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user