Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 14:14:40 -06:00
parent a8ed2fbd67
commit a572b3fa4d

View File

@@ -77,7 +77,8 @@ STATUS() {
fi
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${LH}${idsCL[Default]}"
DIVIDER false green
if [ $(CHECK_HOST ${nip}) != "false" ]; then
checkhost=CHECK_HOST ${nip}
if [ "${checkhost}" != "false" ]; then
for srvc in "${NODE_SERVICES[@]}"
do
c=0; cw=22; spc=''
@@ -93,7 +94,7 @@ STATUS() {
fi
done
else
echo -e "${idsCL[Red]}Node is Down! $(CHECK_HOST ${nip})${idsCL[Default]}"
echo -e "${idsCL[Red]}Node is Down! ${checkhost}${idsCL[Default]}"
fi
echo
nid=`expr $nid + 1`
@@ -108,7 +109,8 @@ STATUS() {
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}"
DIVIDER false green
if [ $(CHECK_HOST ${nip}) != "false" ]; then
checkhost=CHECK_HOST ${nip}
if [ "${checkhost}" != "false" ]; then
for rcheck in "${REPL_CHECK[@]}"; do
c=0; cw=22; spc=''
spc1=${cw}-${#REPL_DESC[${rcheck}]}