mirror of
https://github.com/librenms/librenms.git
synced 2024-09-27 05:18:10 +00:00
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:
parent
3108789344
commit
2a426699ee
@ -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));
|
||||
|
@ -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]'");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user