diff --git a/defaults.inc b/defaults.inc index fb11c9a0..2d0bd39b 100755 --- a/defaults.inc +++ b/defaults.inc @@ -114,6 +114,7 @@ CERT-CHECK(){ } CHECK_HOST(){ + echo $1 if [ -z ${1+x} ]; then ping -c 3 ${1} > /dev/null 2>&1 if [ $? -ne 0 ]; then diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index cccc1198..b06761ff 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -93,7 +93,7 @@ STATUS() { fi done else - echo -e "${idsCL[Red]}Node is Down!${idsCL[Default]}" + echo -e "${idsCL[Red]}Node is Down! $(CHECK_HOST ${nip})${idsCL[Default]}" fi echo nid=`expr $nid + 1`