Update power.inc.sh

This commit is contained in:
2024-02-11 11:47:47 -06:00
parent a4febc36f0
commit f21941f210

View File

@@ -404,10 +404,10 @@ CHECKPOWER(){
HOST_WATTS_disp="${idsCL[Green]}${AD}'amps${spc}`IDS_NUMBER_FORMAT ${HOST_WATTS} 0`'watts"
elif [ "$(ipmitool -I lanplus -H ${PW_HOST_IDRACS[${SENSOR}]} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep off)" != "" ]; then
HOST_WATTS_disp="${idsCL[LightRed]}Host powered down "
HOST_WATTS_disp="${idsCL[LightRed]}Host powered down "
HOST_WATTS=-1
elif [ "${HOST_WATTS}" = "0" ]; then
HOST_WATTS_disp="${idsCL[Yellow]}Host PSU not capable "
HOST_WATTS_disp="${idsCL[Yellow]}Host PSU not capable"
HOST_WATTS=-2
else
HOST_WATTS_disp="${idsCL[LightRed]}Could not pull data"