Update status.inc
This commit is contained in:
@@ -92,7 +92,7 @@ STATUS(){
|
||||
else
|
||||
echo -e "${idsCL[Default]}"
|
||||
fi
|
||||
DIVIDER . green ${DV_LEN}
|
||||
DIVIDER . green `expr ${DV_LEN} - 10`
|
||||
|
||||
fi
|
||||
# if [ "${STATUS_ACTION}" != "check" ]; then
|
||||
@@ -199,7 +199,7 @@ STATUS(){
|
||||
if [[ "${RUN_NODE_IP}" != *"${nip}"* ]] && [ "${nip}" != "${!PH}" ]; then
|
||||
if [ "${STATUS_ACTION}" != "check" ]; then
|
||||
echo -e " ${idsCL[LightCyan]}${NM_HOSTNAMES[${!PH}]}[${!PH}] <--> ${idsST[Bold]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false green ${DV_LEN}
|
||||
DIVIDER false green `expr ${DV_LEN} - 10`
|
||||
fi
|
||||
if [ ! -f ${NM_FOLDER}/${!PH}.down ] && [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
|
||||
var2=${NTYPE}_REPL_CHECK[@]
|
||||
@@ -310,7 +310,7 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${
|
||||
fi
|
||||
if [ "${STATUS_ACTION}" != "check" ]; then
|
||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}${idsCL[LightCyan]} ${idsCL[LightYellow]}${LH}${idsCL[Default]}"
|
||||
DIVIDER false green ${DV_LEN}
|
||||
DIVIDER false green `expr ${DV_LEN} - 10`
|
||||
fi
|
||||
|
||||
[ "${STATUS_ACTION}" != "check" ] && [ "${2}" != "report" ] && echo -en " ${idsCL[LightCyan]}Getting drives from server ... ${idsCL[Default]}"
|
||||
@@ -433,7 +433,7 @@ STATUS_NODE(){
|
||||
if [ ${GOFORCHECK} = true ]; then
|
||||
|
||||
if [ "${STATUS_ACTION}" != "check" ]; then
|
||||
echo -e "${idsST[Bold]}"; DIVIDER . . ${DV_LEN}
|
||||
echo -e "${idsST[Bold]}"; DIVIDER . . ${DV_LEN}; DIVIDER . . ${DV_LEN}
|
||||
if [ "${STATUS_ACTION}" == "dockers" ]; then
|
||||
echo -e "${idsCL[LightYellow]} ${NM_NODETYPES[$NTYPE]}-Node Docker Status${idsCL[Default]}"
|
||||
else
|
||||
@@ -499,7 +499,7 @@ STATUS_NODE(){
|
||||
########################
|
||||
if [ "${STATUS_ACTION}" != "dockers" ] && [ "${NM_SERVICES_CHECK[${NODETYPE}]}" != "" ]; then
|
||||
echo -e "${idsCL[Green]} System Service(s) Status${idsCL[Default]}"
|
||||
DIVIDER . green ${DV_LEN}
|
||||
DIVIDER false green `expr ${DV_LEN} - 10`
|
||||
|
||||
srvcs=${NODETYPE}_SERVICES_CHECK[@];
|
||||
srvcstotest="$(join_by " " ${!srvcs})"
|
||||
@@ -608,7 +608,7 @@ STATUS_NODE(){
|
||||
if [ "${STATUS_ACTION}" != "check" ]; then
|
||||
[ "${STATUS_ACTION}" == "" ] && [ "${NM_SERVICES_CHECK[${NODETYPE}]}" != "" ] && echo
|
||||
echo -e "${idsCL[Green]} Docker Service(s) Status${idsCL[Default]}"
|
||||
DIVIDER . green ${DV_LEN}
|
||||
DIVIDER false green `expr ${DV_LEN} - 10`
|
||||
fi
|
||||
for docker in "${!dockers}"; do
|
||||
if [ "${STATUS_ACTION}" != "report" ]; then
|
||||
|
||||
Reference in New Issue
Block a user