Update dsmon.sh

This commit is contained in:
2025-06-14 10:59:17 -05:00
parent 231b8d7b76
commit ae3ae48c52

View File

@@ -99,12 +99,12 @@ CHECK(){
declare -A host_ids
declare -a hostnames_sort
# if [ "${1}" == "report" ]; then
if [ "${1}" == "report" ]; then
unset idsCL idsBG idsST
idsCL=('')
idsBG=('')
idsST=('')
# fi
fi
if [ "${1}" != "report" ]; then
MSG="Determining hosts and preparing"
@@ -133,9 +133,6 @@ CHECK(){
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
# touch /tmp/dscheck.${hostname}.results
# touch /tmp/dscheck.${hostname}.done
done
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"