This commit is contained in:
2019-02-07 14:12:33 -06:00
parent c89f14a9bd
commit a8ed2fbd67
2 changed files with 2 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ CERT-CHECK(){
} }
CHECK_HOST(){ CHECK_HOST(){
echo $1
if [ -z ${1+x} ]; then if [ -z ${1+x} ]; then
ping -c 3 ${1} > /dev/null 2>&1 ping -c 3 ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then

View File

@@ -93,7 +93,7 @@ STATUS() {
fi fi
done done
else else
echo -e "${idsCL[Red]}Node is Down!${idsCL[Default]}" echo -e "${idsCL[Red]}Node is Down! $(CHECK_HOST ${nip})${idsCL[Default]}"
fi fi
echo echo
nid=`expr $nid + 1` nid=`expr $nid + 1`