From 98336210c3fadc33661ed6b83a8673e9c2865a5d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 12:01:33 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 7f0526d..b492c7f 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -146,7 +146,7 @@ CHECK(){ echo -en "${idsCL[LightCyan]}${MSG}${spc}: " fi for hostname in "${hostnames_sort[@]}"; do - until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 6 ]; do tmp=tmp; done + until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 12 ]; do tmp=tmp; done RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results done [ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n" @@ -191,9 +191,9 @@ RUN_CHECK(){ MSG=" ${host_name[$hostid]} - (${host_ip[$hostid]})" c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - DIVIDER 1 white ${cw} + DIVIDER 1 . ${cw} echo -e "${idsBG[Blue]}${idsCL[White]}${MSG}${spc}${idsST[Reset]}" - DIVIDER . white ${cw} + DIVIDER . . ${cw} checkhost=$(CHECK_HOST ${host_ip[$hostid]}) if [ "${checkhost}" != "false" ]; then