woops, fill out temp oid for TME, temp graphing now supported, yay

git-svn-id: http://www.observium.org/svn/observer/trunk@690 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-15 10:38:16 +00:00
parent 8e479cbf64
commit b63782dce6
+1
View File
@@ -44,6 +44,7 @@
$temp = trim(shell_exec($config['snmpget'] . " -O qv -$snmpver -c $community $hostname:$port SNMPv2-SMI::enterprises.18248.1.1.1.0"));
if(!strstr($descr, "No") && !strstr($temp, "No") && $descr != "" && $temp != "0")
{
$temp_oid = "SNMPv2-SMI::enterprises.18248.1.1.1.0";
$descr = trim(str_replace("\"", "", $descr));
if(mysql_result(mysql_query("SELECT count(temp_id) FROM `temperature` WHERE temp_oid = '$temp_oid' AND temp_host = '$id'"),0) == '0')
{