Update temp.inc.sh

This commit is contained in:
2024-06-30 12:16:20 -05:00
parent e2e0e10dde
commit 601cbe0e24

View File

@@ -565,6 +565,9 @@ CHECKTEMP(){
DIVIDER . white ${PRI_WIDTH} DIVIDER . white ${PRI_WIDTH}
fi fi
fi
((t++))
done
if [ "${TTYPE}" == "fans" ]; then if [ "${TTYPE}" == "fans" ]; then
if [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${SENSOR}]}"* ]]; then if [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${SENSOR}]}"* ]]; then
if [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.gl ]; then if [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.gl ]; then
@@ -592,16 +595,10 @@ CHECKTEMP(){
echo -e "${idsCL[Default]}" echo -e "${idsCL[Default]}"
fi fi
# else else
# echo -e " Fans are not managed for this host"
fi
fi
fi
((t++))
done
if [ "${TTYPE}" == "fans" ] && [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" != *"${PW_HOST_IDRACS[${SENSOR}]}"* ]]; then
echo -e " Fans are not managed for this host" echo -e " Fans are not managed for this host"
fi fi
fi
else else
echo -e "${idsCL[LightCyan]} ${vHOSTNAME}${spc}${idsCL[Default]}: No Data" echo -e "${idsCL[LightCyan]} ${vHOSTNAME}${spc}${idsCL[Default]}: No Data"
fi fi