Update temp.inc.sh

This commit is contained in:
2023-12-26 18:44:39 -06:00
parent 3e9c194e35
commit 751abe193d

View File

@@ -333,6 +333,7 @@ CHECKTEMP_SERVICE(){
fi
if [ "${SENSORS_CHECK}" != "" ]; then
for SENSOR in "${SENSORS_CHECK[@]}"; do
echo -en "${SENSOR}"
if [ "${PW_THRESHOLDS[${SENSORa}]}" != "" ]; then
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit
@@ -610,6 +611,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} Sensor - ERROR reading sensor data" >> ${logtemp}
fi
fi
echo done
done
fi
# elif [ "${PW_HOST_ADDRESSES[${SENSORa}]}" == "" ]; then #sensor down