remove module use from tme

git-svn-id: http://www.observium.org/svn/observer/trunk@688 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans 2010-01-14 17:18:28 +00:00
parent 3108789344
commit 2a426699ee
2 changed files with 2 additions and 5 deletions

View File

@ -40,8 +40,8 @@
## Papouch TME Temperatures
if($device['os'] == "papouch-tme") {
echo("Papouch TME ");
$descr = trim(shell_exec($config['snmpget'] . " -m TMESNMP2-MIB -O qv -$snmpver -c $community $hostname:$port SNMPv2-SMI::enterprises.18248.1.1.3.0"));
$temp = trim(shell_exec($config['snmpget'] . " -m TMESNMP2-MIB -O qv -$snmpver -c $community $hostname:$port SNMPv2-SMI::enterprises.18248.1.1.2.0"));
$descr = trim(shell_exec($config['snmpget'] . " -O qv -$snmpver -c $community $hostname:$port SNMPv2-SMI::enterprises.18248.1.1.3.0"));
$temp = trim(shell_exec($config['snmpget'] . " -O qv -$snmpver -c $community $hostname:$port SNMPv2-SMI::enterprises.18248.1.1.2.0"));
if(!strstr($descr, "No") && !strstr($temp, "No") && $descr != "" && $temp != "0")
{
$descr = trim(str_replace("\"", "", $descr));

View File

@ -42,9 +42,6 @@ while($temperature = mysql_fetch_array($temp_data)) {
}
mysql_query("UPDATE temperature SET temp_current = '$temp' WHERE temp_id = '$temperature[temp_id]'");
}
?>