Update nodemgmt-scripts.sh

This commit is contained in:
2019-07-25 20:36:38 -05:00
parent 6aec6cecc5
commit 495f589dc5

View File

@@ -226,6 +226,9 @@ STATUS(){
fi
done
else
if [ ! -f ${FOLDER}/${nip}.down ]; then
touch ${FOLDER}/${nip}.down
fi
errtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}.down)
if [ $errtime -gt ${RENOTIFY} ]; then
if [ ! -f ${FOLDER}/${nip}.errtime ]; then
@@ -241,7 +244,6 @@ STATUS(){
echo -e "${idsCL[Red]}Node is Down!${idsCL[Default]}"
fi
fi
touch ${FOLDER}/${nip}.down
fi
if [ "${ST_ACTION}" != "check" ]; then echo; fi
nid=`expr $nid + 1`