Update dsmon.sh

This commit is contained in:
2025-06-14 11:36:40 -05:00
parent af539a5b02
commit 362dddf264

View File

@@ -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