Update nodemgmt-scripts.sh

This commit is contained in:
2023-06-23 23:10:44 -05:00
parent 36e85a8262
commit 7a54da9a51

View File

@@ -1282,6 +1282,7 @@ GUI(){
[ ${fd} -lt ${cbd} ] && rm -f "${FOLDER}/status-check.running"
fi
if [ ! -f "${FOLDER}/status-check.running" ]; then
start_status=`date +%s`
touch "${FOLDER}/status-check.running"
if [ "${2}" == "report" ]; then
echo "$(date) - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${LOGFILE}
@@ -1291,6 +1292,9 @@ GUI(){
echo "$(date) - LOCAL - ${NODE_HOSTNAME} - Completed Status Check" >> ${LOGFILE}
rm -f ${FOLDER}/status-check.lastrun
mv ${FOLDER}/status-check.running ${FOLDER}/status-check.lastrun
end_status=`date +%s`
runtime_status=$((end_status-start_status))
echo -e"\nRuntime: ${runtime_status}" >> ${FOLDER}/status-check.lastrun
if [ "${3}" = "email" ]; then
echo -e "\n\n" >> ${FOLDER}/status-check.lastrun
DOWNLIST report >> ${FOLDER}/status-check.lastrun