Update temp.inc.sh
This commit is contained in:
@@ -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}]}
|
||||
|
||||
Reference in New Issue
Block a user