Update dsmon.sh

This commit is contained in:
2025-06-13 20:51:30 -05:00
parent f792620a5b
commit 124b857edf

View File

@@ -134,7 +134,9 @@ CHECK(){
#for hostid in "${!host_ip[@]}"; do
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} > /tmp/dscheck.${hostname}.results 2>/dev/null &
# RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results 2>/dev/null &
touch /tmp/dscheck.${hostname}.done
done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"