diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 70418226..eac4eb48 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -99,7 +99,14 @@ CHECKTEMP(){ last_sensor=${SENSOR%%-*} fi done + DIVIDER true yellow 70 + if [ "${avgdays}" != "" ]; then + echo -e "${idsCL[Cyan]}ESXi Sensor Temperature(s) Current / ${idsCL[LightYellow]}${avgdays_disp}AVG ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}" + else + echo -e "${idsCL[Cyan]}ESXi Sensor Temperature(s) Current ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}" + fi + DIVIDER . yellow 70 for SENSOR in ${PW_SENSOR_ORD[@]}; do if ([ "${search}" == "" ] || [[ "${SENSOR,,}" = *"${search,,}"* ]]) && [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "esxi" ] && [ "${temptype}" != "sensors" ]; then vHOSTiDRACIP=${PW_HOST_IDRACS[${SENSOR}]}