This commit is contained in:
2019-02-07 14:25:12 -06:00
parent 5556dc887d
commit e9fb66aae5
2 changed files with 13 additions and 11 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

@@ -34,17 +34,18 @@ STATUS() {
# done # done
# fi # fi
# done # done
for rcheck in "${REPL_CHECK[@]}"; do
${NCMD} rm -f ${FOLDER}/test.repl # for rcheck in "${REPL_CHECK[@]}"; do
daterun=`date +%Y-%m-%d-%H-%M-%S` # ${NCMD} rm -f ${FOLDER}/test.repl
if [ "${NCMD}" = "" ]; then # daterun=`date +%Y-%m-%d-%H-%M-%S`
echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl # if [ "${NCMD}" = "" ]; then
yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl # echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl
else # yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl
${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl" # else
yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl" # ${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl"
fi # yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl"
done # fi
# done
echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}" echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"