From ae3ae48c52bb776bfe026f8fc564a82ab41bd607 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 10:59:17 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 91d800e..efde704 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -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"