Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -113,7 +113,7 @@ CHECK(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
MSG="Determining hosts and preparing"
|
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}: "
|
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
||||||
while read hostid hostname hostip hostlimits; do
|
while read hostid hostname hostip hostlimits; do
|
||||||
if [ "$hostid" != "id" ]; then
|
if [ "$hostid" != "id" ]; then
|
||||||
@@ -131,7 +131,7 @@ CHECK(){
|
|||||||
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
MSG="Starting jobs to collect host info"
|
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}: "
|
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
||||||
#for hostid in "${!host_ip[@]}"; do
|
#for hostid in "${!host_ip[@]}"; do
|
||||||
for hostname in "${hostnames_sort[@]}"; do
|
for hostname in "${hostnames_sort[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user