From 48a9aeaaa4421ab5fd774dddb0a5d76200c1236e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 29 Nov 2024 16:11:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f74e2759..4ec27311 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1317,7 +1317,7 @@ GUI(){ echo -e "}\n" exit 0 else - if [ ${#STATUSRUNS[@]} -lt 3 ]; then + if [ ${#STATUSRUNS[@]} -lt 3 ] && [ ! -f ${NM_TMPFOLDER}/.skip ]; then STATUS_START=$(date +%Y-%m-%d-%H-%M-%S) STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}" mkdir ${STATUSRUN_TMPFOLDER} @@ -1344,7 +1344,9 @@ GUI(){ STATUS ${2} ${3} ${4} fi rm -Rf ${STATUSRUN_TMPFOLDER} - + + elif [ -f ${NM_TMPFOLDER}/.skip ]; then + echo -e "HOST DISABLED - Not running status checks" else [ "${MM_ACTION}" != "report" ] && echo -e "${idsCL[LightRed]}Whooooaaaaa there cowboy, we got 3 threads running already.... easy killer!${idsCL[Default]}\n" if [ ! -f ${NM_TMPFOLDER}/.overload ]; then