Update dsmon.sh
This commit is contained in:
5
dsmon.sh
5
dsmon.sh
@@ -191,10 +191,9 @@ RUN_CHECK(){
|
|||||||
|
|
||||||
MSG=" ${host_name[$hostid]} - (${host_ip[$hostid]})"
|
MSG=" ${host_name[$hostid]} - (${host_ip[$hostid]})"
|
||||||
c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
# DIVIDER 1 white ${cw}
|
DIVIDER 1 white ${cw}
|
||||||
echo
|
|
||||||
echo -e "${idsBG[Blue]}${idsCL[White]}${MSG}${spc}${idsST[Reset]}"
|
echo -e "${idsBG[Blue]}${idsCL[White]}${MSG}${spc}${idsST[Reset]}"
|
||||||
DIVIDER . white ${cw}
|
DIVIDER . . ${cw}
|
||||||
|
|
||||||
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user