From 59a34bf734d0add54031510f13861bd6e4e64add Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 18 May 2024 16:44:10 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 7ec753c7..dfe0a953 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1203,14 +1203,9 @@ Previous Temp: ${last_temp}${GAUGESH}" if [ "${PW_SENSOR_ID[${SENSORa}]}" != "" ] && [ ${lastinsert} -ge ${wait} ] && [ "${temp_f}" != "32.00" ] && [ "${temp_f}" != "35.60" ]; 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}]}'")) - echo -en "HERE: ${SENSORa} - ${entityid[1]} = " if [ "${entityid[1]}" == "" ]; then ${mysql_conn} -e "USE servermonitor; INSERT INTO entities (\`sensorid\`, \`name\`) VALUES ('${PW_SENSOR_ID[${SENSORa}]}','${vSENSOR// /_}')" entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'")) - echo "no - ${entityid[1]}" - - else - echo yes fi entityid=${entityid[1]}