Update powerwall.sh

This commit is contained in:
2022-09-03 11:38:04 -05:00
parent 34a86c5014
commit 8738a77331

View File

@@ -25,9 +25,9 @@ CHECKTEMP(){
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
if [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['warn']} ] && [ $temp_f -lt ${TEMP_THRESHOLDS[${1}]['crit']} ]; then
if [ $temp_f -ge ${temp_warn} ] && [ $temp_f -lt ${temp_crit} ]; then
echo "WARNING: $temp_f"
elif [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['crit']} ]; then
elif [ $temp_f -ge ${temp_crit} ]; then
echo "CRITICAL: $temp_f"
else
echo "normal: $temp_f"