Update nodemgmt-scripts.sh

This commit is contained in:
2024-11-29 16:11:20 -06:00
parent 653ca70784
commit 48a9aeaaa4

View File

@@ -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