This commit is contained in:
2024-03-17 19:15:52 -05:00
parent 6ee79fb8a4
commit 75401fe2f7
2 changed files with 6 additions and 6 deletions

View File

@@ -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 '

View File

@@ -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}"