Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-31 18:08:03 -06:00
parent 9432fbe189
commit 6c6c9a3d70

View File

@@ -276,7 +276,7 @@ STATUS(){
echo -e "${idsCL[Red]}Not Running - Could Not Fix!${idsCL[Default]}"
if [ ! -f ${FOLDER}/${nip}-${docker}.down ]; then
if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo -e "${NM_SERVICES[${docker}]} is down\t$(date)" | mail -s "${NM_NODETYPES[$NTYPE]}-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}; fi
if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo -e "${NM_DOCKERS[${docker}]} is down\t$(date)" | mail -s "${NM_NODETYPES[$NTYPE]}-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}; fi
touch ${FOLDER}/${nip}-${docker}.down
else
errtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}-${docker}.down)