From 6ee79fb8a48061bf48f7a44c6d6275c661988899 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Mar 2024 07:58:19 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index ccf4c392..3b6e27b3 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -559,10 +559,10 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "lacrosse" ] || ([ "${PW_REMOTE_SENSORS[${SENSORa}]}" != "" ] && [ "$(CHECK_HOST ${PW_REMOTE_SENSORS[${SENSORa}]})" != "false" ]) || ([ "${PW_HOST_ADDRESSES[${SENSORa}]}" != "" ] && [ "$(CHECK_HOST ${PW_HOST_ADDRESSES[${SENSORa}]})" != "false" ]); then # if ([ "${PW_REMOTE_SENSORS[${SENSORa}]}" != "" ] && [ "$(CHECK_HOST ${PW_REMOTE_SENSORS[${SENSORa}]})" != "false" ]); then - if [ -f ${PW_TMPFOLDER}/${SENSORa}-error.sent ]; then - SENDNOTICE "${SENSORa} Data" "${SENSORa} is reporting data again" - echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} - Sensor is reporting data again" >> ${logtemp} - fi + # if [ -f ${PW_TMPFOLDER}/${SENSORa}-error.sent ]; then + # SENDNOTICE "${SENSORa} Data" "${SENSORa} is reporting data again" + # echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} - Sensor is reporting data again" >> ${logtemp} + # fi # rm -f ${PW_TMPFOLDER}/${SENSORa}* if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then vHOST_TEMPNAMES=$(snmpwalk -v 1 -c public -t 2 ${PW_HOST_IDRACS[${SENSORa}]} .1.3.6.1.4.1.674.10892.5.4.700.20.1.8 -O vq | sed -e 's/"//g' | sed -e 's/ Temp//g')