From 75401fe2f7d504d8b36f3cc72c08f67dbeb07bd6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Mar 2024 19:15:52 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/defaults.inc b/defaults.inc index 87cbb515..7d116ed0 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.6.67-03162024' +VERS='2.6.68-03172024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3b6e27b3..e8485006 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -559,12 +559,12 @@ 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 - # rm -f ${PW_TMPFOLDER}/${SENSORa}* if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; 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 + rm -f ${PW_TMPFOLDER}/${SENSORa}* 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') IFS=$'\n' read -rd '' -a SENSORS_CHECK <<<"${vHOST_TEMPNAMES}"