Update nodemgmt-scripts.sh

This commit is contained in:
2023-05-22 22:56:50 -05:00
parent 5a27dc4527
commit e49578d167

View File

@@ -1258,9 +1258,11 @@ GUI(){
if [ ! -f "${FOLDER}/status-check.running" ]; then
touch "${FOLDER}/status-check.running"
if [ "${2}" == "report" ]; then
echo "$(date) - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${LOGFILE}
echo -e "$(date) - Starting status check #############################\n" > ${FOLDER}/status-check.running
STATUS report ${3} >> ${FOLDER}/status-check.running
echo -e "\n\n$(date) - Finished status check #############################\n" >> ${FOLDER}/status-check.running
echo "$(date) - LOCAL - ${NODE_HOSTNAME} - Completed Status Check" >> ${LOGFILE}
rm -f ${FOLDER}/status-check.lastrun
mv ${FOLDER}/status-check.running ${FOLDER}/status-check.lastrun
if [ "${3}" = "email" ]; then