Update dsmon.sh

This commit is contained in:
2025-06-14 11:02:27 -05:00
parent 7f5a0ee768
commit 5f57969249

View File

@@ -132,7 +132,7 @@ CHECK(){
fi
for hostname in "${hostnames_sort[@]}"; do
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 6 ]; do tmp=tmp; done
( RUN_CHECK ${hostname}; echo -e "\n" ) > /tmp/dscheck.${hostname}.results &
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results
done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
@@ -298,6 +298,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 500ms
mv /tmp/dscheck.${hostname}.running /tmp/dscheck.${hostname}.done
}