From 7db0b5986047ce5d4fd121808efd712fa6aa2a1e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Jan 2024 10:36:13 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/defaults.inc b/defaults.inc index 0dcc3543..50ee2511 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.94-01012024' +VERS='2.5.96-01012024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 9ad861eb..cd3760a5 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -570,9 +570,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ else wait=$(echo "scale=0; ${PW_MYSQL_LOG_INTERVAL_NORMAL}*60" | bc) fi - - echo "HERE: ${SENSOR} - ${lastinsert} - ${wait}" - + if [ "${PW_SENSOR_ID[${SENSORa}]}" != "" ] && [ ${lastinsert} -ge ${wait} ]; then if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'"))