Update temp.inc.sh
This commit is contained in:
@@ -118,7 +118,7 @@ CHECKTEMP(){
|
||||
if [ "${avgdays}" != "noavg" ]; then
|
||||
echo -e "${idsCL[LightYellow]}ESXI HOST TEMPERATURE(S) Current / ${idsCL[LightYellow]}${avgdays_disp}AVG ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[LightYellow]}ESXI HOST TEMPERATURE(S) Current ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightYellow]}ESXI HOST TEMPERATURE(S) Current ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}"
|
||||
fi
|
||||
DIVIDER . yellow ${PRI_WIDTH}
|
||||
for SENSOR in ${PW_SENSOR_ORD[@]}; do
|
||||
@@ -364,7 +364,7 @@ CHECKTEMPSENSOR(){
|
||||
[ "${average}" != "" ] && echo -en " /${spca}${averagedisp}${GAUGESH}"
|
||||
if [ "${average}" != "" ] || ([ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]) && [[ "${1}" != *"FAN"* ]]; then
|
||||
tmp="${spct}${temp_f_disp}${GAUGESH}"
|
||||
[ "${average}" != "" ] && fws=11 || fws=30
|
||||
[ "${average}" != "" ] && fws=11 || fws=21
|
||||
c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
||||
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
||||
|
||||
Reference in New Issue
Block a user