Update temp.inc.sh

This commit is contained in:
2024-05-24 23:26:46 -05:00
parent 30634cbf47
commit badcf4b46d

View File

@@ -1196,6 +1196,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
# if (( $(bc <<< "${temp_diff} >= 1") )); then
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
SENDNOTICE "${SENSOR} TEMP CRITICAL" "SYSTEM CRITICAL ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}${GAUGESH})" 1
# [ $(bc -l <<< "${temp_diff} >= 5") -eq 1 ] && SENDNOTICE "${SENSOR} TEMP CRITICAL" "SYSTEM CRITICAL ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}${GAUGESH})" 1
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - SYSTEM CRITICAL - (Difference of ${temp_diff})" >> ${logtemp}
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - ${SENSOR} - CRITICAL ${GAUGE} SYSTEM - (Difference of ${temp_diff}${GAUGESH})" >> ${PW_LOGFILE}
if [ "${last_temp}" != "${temp_f}" ]; then