Update dsmon.sh
This commit is contained in:
5
dsmon.sh
5
dsmon.sh
@@ -229,8 +229,9 @@ RUN_CHECK(){
|
|||||||
MSG=" ${host_name[$hostid]}"
|
MSG=" ${host_name[$hostid]}"
|
||||||
MSG2="( ${host_name_full[$hostid]} )"
|
MSG2="( ${host_name_full[$hostid]} )"
|
||||||
MSG3="[ ${host_ip[$hostid]} ] "
|
MSG3="[ ${host_ip[$hostid]} ] "
|
||||||
c=0; cw=85; spcA=''; spcB=''; spc1=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc1/2)); spc2=$((85-spc1))
|
c=0; cw=85; spcA=''; spcB=''; spc1=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc1 / 2)); spc2=$((85 - spc1))
|
||||||
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done; until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
||||||
|
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
||||||
DIVIDER 1 . 85
|
DIVIDER 1 . 85
|
||||||
echo -e "${idsST[Bold]}${idsBG[Blue]}${idsCL[White]}${MSG}${spcA}${MSG2}${spcB}${MSG3}${idsST[Reset]}"
|
echo -e "${idsST[Bold]}${idsBG[Blue]}${idsCL[White]}${MSG}${spcA}${MSG2}${spcB}${MSG3}${idsST[Reset]}"
|
||||||
DIVIDER . . 85
|
DIVIDER . . 85
|
||||||
|
|||||||
Reference in New Issue
Block a user