Update dsmon.sh
This commit is contained in:
8
dsmon.sh
8
dsmon.sh
@@ -105,9 +105,9 @@ CHECK(){
|
||||
#for hostid in "${!host_ip[@]}"; do
|
||||
for hostname in "${hostnames_sort[@]}"; do
|
||||
hostid=${host_ids[$hostname]}
|
||||
echo -e "${idsST[Bold]}"; DIVIDER false yellow 90
|
||||
echo -e "${idsCL[LightCyan]} ${host_name[$hostid]} - Drive Space Check${idsCL[Default]}${idsST[Reset]}"
|
||||
DIVIDER false yellow 90;
|
||||
echo -e "${idsST[Bold]}"; DIVIDER false LightCyan 100
|
||||
echo -e "${idsCL[LightCyan]} ${host_name[$hostid]} - Drive Space Check${idsCL[Default]}"
|
||||
DIVIDER false LightCyan 100;
|
||||
|
||||
c=0; cw=40; spcA=''
|
||||
spc1=`expr ${cw} - 5`
|
||||
@@ -223,7 +223,7 @@ CHECK(){
|
||||
spc4=`expr ${cw} - ${#DRIVEINFO_TOT[$DRIVE]}`
|
||||
until [ $c = ${spc4} ]; do spcD="${spcD} "; c=`expr $c + 1`; done
|
||||
|
||||
echo -e "${idsCL[Cyan]} ${DRIVE}${spcA}:${idsCL[$fs_status_color]} ${DRIVEINFO_FREE[$DRIVE]} GB${spcB}${DRIVEINFO_FREEPER[$DRIVE]}%${spcC}${DRIVEINFO_TOT[$DRIVE]} GB${spcD}${idsCL[Cyan]}( ${idsCL[Yellow]}${WARNING_LEVEL}%${idsCL[Cyan]} / ${idsCL[Red]}${CRITICAL_LEVEL}%${idsCL[Cyan]} )${idsCL[Default]}"
|
||||
echo -e "${idsST[Reset]}${idsCL[Cyan]} ${DRIVE}${spcA}:${idsCL[$fs_status_color]} ${DRIVEINFO_FREE[$DRIVE]} GB${spcB}${DRIVEINFO_FREEPER[$DRIVE]}%${spcC}${DRIVEINFO_TOT[$DRIVE]} GB${spcD}${idsCL[Cyan]}( ${idsCL[Yellow]}${WARNING_LEVEL}%${idsCL[Cyan]} / ${idsCL[Red]}${CRITICAL_LEVEL}%${idsCL[Cyan]} )${idsCL[Default]}"
|
||||
done
|
||||
|
||||
unset DRIVEINFO_TOT DRIVEINFO_FREE DRIVEINFO_FREEPER DRIVES DRIVEINFO host_limits_tmp
|
||||
|
||||
Reference in New Issue
Block a user