mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
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:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user