From 9fa8c60fd7ed2ca3feb20ddfb4eb4a9c0c050f60 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 2 Jan 2023 13:00:40 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 01c64f8..d5c8043 100755 --- a/dsmon.sh +++ b/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