Update powerwall.sh
This commit is contained in:
@@ -26,9 +26,9 @@ CHECKTEMP(){
|
|||||||
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
|
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
|
||||||
temp_f=72.2
|
temp_f=72.2
|
||||||
|
|
||||||
if [ $temp_f -ge ${temp_warn} ] && [ $temp_f -lt ${temp_crit} ]; then
|
if [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then
|
||||||
echo "WARNING: $temp_f"
|
echo "WARNING: $temp_f"
|
||||||
elif [ $temp_f -ge ${temp_crit} ]; then
|
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
|
||||||
echo "CRITICAL: $temp_f"
|
echo "CRITICAL: $temp_f"
|
||||||
else
|
else
|
||||||
echo "normal: $temp_f"
|
echo "normal: $temp_f"
|
||||||
|
|||||||
Reference in New Issue
Block a user