update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.7.18-04242024'
|
VERS='2.7.19-04242024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
if [ "${tsensor}" != "*" ]; then
|
if [ "${tsensor}" != "*" ]; then
|
||||||
rm -f ${sensor}
|
rm -f ${sensor}
|
||||||
((s_count++))
|
((s_count++))
|
||||||
if [ -f ${PW_TMPFOLDER}/${tsensor}.down ] && [ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor} ]; then
|
if [ -f ${PW_TMPFOLDER}/${tsensor}.down ] && [ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}.set ] && [ "${PW_SENSOR_TYPE[${tsensor}]}" == "esxi" ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastfancheck/${tsensor}.set)) -ge 900 ]; then
|
||||||
rm -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}*
|
rm -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}*
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -1129,7 +1129,8 @@ Previous Temp: ${last_temp}${GAUGESH}"
|
|||||||
touch ${PW_TMPFOLDER}/${SENSORa}-error.sent
|
touch ${PW_TMPFOLDER}/${SENSORa}-error.sent
|
||||||
SENDNOTICE "${SENSORa} Sensor ERROR" "ERROR reading sensor data" 1
|
SENDNOTICE "${SENSORa} Sensor ERROR" "ERROR reading sensor data" 1
|
||||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} Sensor - ERROR reading sensor data" >> ${logtemp}
|
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSORa} Sensor - ERROR reading sensor data" >> ${logtemp}
|
||||||
[ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ] && [ -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set
|
elif [ -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set ] && [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set)) -ge 900 ]; then
|
||||||
|
rm -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f ${PW_TMPFOLDER}/ztemprun.${SENSORa}.running
|
rm -f ${PW_TMPFOLDER}/ztemprun.${SENSORa}.running
|
||||||
|
|||||||
Reference in New Issue
Block a user