Update powerwall.sh
This commit is contained in:
@@ -29,7 +29,8 @@ CHECKTEMP(){
|
||||
vHOSTIP=${PW_HOST_IDRACS[${SENSOR}]}
|
||||
vHOSTNAME=${PW_ESXI_HOST_NAMES[${vHOSTIP}]}
|
||||
echo -e "\r\033[K${idsCL[LightCyan]}${idsST[Bold]}${SENSOR} Host Sensors ${idsST[Reset]}${idsCL[LightCyan]}- ${vHOSTIP}${idsCL[Default]}"
|
||||
echo -en "${idsCL[Yellow]}Pulling data and calculating averages for '${SENSOR}' ..."
|
||||
# echo -en "${idsCL[Yellow]}Pulling data and calculating averages for '${SENSOR}' ..."
|
||||
echo -en "${idsCL[Yellow]}Pulling data for '${SENSOR}' ..."
|
||||
|
||||
if [ "$(CHECK_HOST ${vHOSTIP})" != "false" ]; then
|
||||
vHOSTDATA=$(ssh root@${PW_RACADM_ACCESS} racadm -r ${vHOSTIP} -u ${PW_ESXI_USER} -p "'${PW_ESXI_PASS}'" getsensorinfo | grep " Temp" 2>&1)
|
||||
@@ -114,7 +115,7 @@ CHECKTEMPSENSOR(){
|
||||
# else
|
||||
# averagedisp="${idsCL[Green]}${average}'F"
|
||||
# fi
|
||||
averagedisp=''
|
||||
averagedisp=' '
|
||||
|
||||
if [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then
|
||||
echo -en "${idsCL[Yellow]}WARNING (${spct}${temp_f}'F / ${spca}${averagedisp}${idsCL[Yellow]})${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user