Update temp.inc.sh
This commit is contained in:
@@ -308,6 +308,7 @@ AVERAGETEMP(){
|
|||||||
sensorid=${1}
|
sensorid=${1}
|
||||||
logsfound=0;
|
logsfound=0;
|
||||||
if [ "${3}" != "" ]; then
|
if [ "${3}" != "" ]; then
|
||||||
|
echo -e "\nHERE: WHERE BINARY name='${3}' AND sensorid='${sensorid}'\n"
|
||||||
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
|
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
|
||||||
entityid=${entityid[1]}
|
entityid=${entityid[1]}
|
||||||
WHERE="sensorid=${sensorid} AND entity=${entityid}"
|
WHERE="sensorid=${sensorid} AND entity=${entityid}"
|
||||||
|
|||||||
Reference in New Issue
Block a user