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}
fi
fi
((t++))
done
if [ "${TTYPE}" == "fans" ]; then
if [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${SENSOR}]}"* ]]; then
if [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.gl ]; then
@@ -592,16 +595,10 @@ CHECKTEMP(){
echo -e "${idsCL[Default]}"
fi
# 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
else
echo -e " Fans are not managed for this host"
fi
fi
else
echo -e "${idsCL[LightCyan]} ${vHOSTNAME}${spc}${idsCL[Default]}: No Data"
fi