From 362dddf264a93cea69a98999961bd2c242739543 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 11:36:40 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 3e59764..15a26c2 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -189,9 +189,11 @@ RUN_CHECK(){ touch /tmp/dscheck.${hostname}.running hostid=${host_ids[$hostname]} - echo -e "${idsST[Bold]}"; DIVIDER false lightCyan 85 - echo -e "${idsBG[Blue]}${idsCL[White]} ${host_name[$hostid]} - (${host_ip[$hostid]}) ${idsST[Reset]}" - DIVIDER false lightCyan 85 + MSG=" ${host_name[$hostid]} - (${host_ip[$hostid]})" + c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spcA} "; c=`expr $c + 1`; done + echo -e "${idsST[Bold]}"; DIVIDER false lightCyan ${cw} + echo -e "${idsBG[Blue]}${idsCL[White]}${MSG}${sp}${idsST[Reset]}" + DIVIDER false lightCyan ${cw} checkhost=$(CHECK_HOST ${host_ip[$hostid]}) if [ "${checkhost}" != "false" ]; then