Update nodemgmt-scripts.sh
This commit is contained in:
@@ -276,7 +276,7 @@ STATUS(){
|
|||||||
echo -e "${idsCL[Red]}Not Running - Could Not Fix!${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not Running - Could Not Fix!${idsCL[Default]}"
|
||||||
|
|
||||||
if [ ! -f ${FOLDER}/${nip}-${docker}.down ]; then
|
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
|
touch ${FOLDER}/${nip}-${docker}.down
|
||||||
else
|
else
|
||||||
errtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}-${docker}.down)
|
errtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}-${docker}.down)
|
||||||
|
|||||||
Reference in New Issue
Block a user