Update dsmon.sh

This commit is contained in:
2025-06-14 12:07:08 -05:00
parent 98336210c3
commit 0788b5cf27

View File

@@ -147,7 +147,7 @@ CHECK(){
fi fi
for hostname in "${hostnames_sort[@]}"; do for hostname in "${hostnames_sort[@]}"; do
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results &
done done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n" [ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
@@ -180,7 +180,7 @@ CHECK(){
sleep 1s sleep 1s
done done
end=`date +%s`; runtime=$((end-start)); echo -e "\nScript Runtime: ${runtime}" end=`date +%s`; runtime=$((end-start)); echo -e "\nScript Runtime: ${runtime}s"
echo echo
} }
@@ -316,6 +316,7 @@ ${DRIVE} : ${DRIVEINFO_FREE[$DRIVE]}GB out of ${DRIVEINFO_TOT[$DRIVE]}GB Free ($
fi fi
sleep 0.001s sleep 0.001s
mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done
fflush
} }
SETUPSSH(){ SETUPSSH(){