Update dsmon.sh

This commit is contained in:
2025-06-14 12:23:38 -05:00
parent 25dcc48b10
commit 3fbb66dfe2

View File

@@ -163,7 +163,7 @@ chmod +x /tmp/run_check_${hostname}.sh
until [ "${completed}" == "true" ]; do
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
for host in /tmp/dscheck.*.done; do
sleep 0.001s
sleep 0.1s
NTS=$(grep -oP '(?<=dscheck\.).*?(?=\.done)' <<< "${host}")
if [ -n "$NTS" ]; then
# echo "'$host' = '$NTS'"
@@ -342,7 +342,7 @@ ${DRIVE} : ${DRIVEINFO_FREE[$DRIVE]}GB out of ${DRIVEINFO_TOT[$DRIVE]}GB Free ($
else
echo -e "${idsCL[Yellow]} ${host_name[$hostid]} is down${idsCL[Default]}"; echo
fi
sleep 0.001s
sleep 0.1s
mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done
}