From c5a755ea832a784b91ce0ef5dbe782d30a959e70 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 10 Apr 2024 11:03:46 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a9346e9d..be86e544 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -691,6 +691,8 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ [ ! -f ${PW_TMPFOLDER}/.lasttemp/${SENSOR} ] && echo 0 > ${PW_TMPFOLDER}/.lasttemp/${SENSOR} last_temp=$(cat ${PW_TMPFOLDER}/.lasttemp/${SENSOR}) + echo "HERE: [${SENSOR//-/}] - ${last_temp} - ${temp_c} - ${temp_f} - ${temp_warn} - ${temp_crit} - ${temp_crit_sys}" + logtemp=${PW_LOGFOLDER}/log-temp-${SENSOR} if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ] && [ "${temp_h}" != "0" ]; then @@ -730,7 +732,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ (( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}" fi - echo "HERE: [${SENSOR//-/}] - ${last_temp} - ${temp_c} - ${temp_f} - ${temp_warn} - ${temp_crit} - ${temp_crit_sys}" + # echo "HERE: [${SENSOR//-/}] - ${last_temp} - ${temp_c} - ${temp_f} - ${temp_warn} - ${temp_crit} - ${temp_crit_sys}" # [ ! "${temp_c}" ] || [ ! "${temp_f}" ] || [ ! "${temp_warn}" ] || [ ! "${temp_crit}" ] || [ ! "${temp_crit_sys}" ] && echo "VALUE NOT FOUND" if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ]; then