Update dsmon.sh

This commit is contained in:
2024-01-06 23:31:38 -06:00
parent a56ec44671
commit b6d5e06547

View File

@@ -113,7 +113,7 @@ CHECK(){
fi
MSG="Determining hosts and preparing"
c=0; cw=${C_CW}; spc=''; spc1=${cw}-${#MSG}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
c=0; cw=${C_CW}; spc=''; spc1=$(expr ${cw} - ${#MSG}); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
while read hostid hostname hostip hostlimits; do
if [ "$hostid" != "id" ]; then
@@ -131,7 +131,7 @@ CHECK(){
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
MSG="Starting jobs to collect host info"
c=0; cw=${C_CW}; spc=''; spc1=${cw}-${#MSG}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
c=0; cw=${C_CW}; spc=''; spc1=$(expr ${cw} - ${#MSG}); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
#for hostid in "${!host_ip[@]}"; do
for hostname in "${hostnames_sort[@]}"; do