mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix broken papouch discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@1538 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -214,7 +214,6 @@ $config['astext'][65333] = "Cymru Bogon Feed";
|
||||
|
||||
### Default warning settings
|
||||
## FIXME THESE SUCK
|
||||
$config['defaults']['temp_limit'] = 60;
|
||||
|
||||
### What should we warn about?
|
||||
$config['warn']['ifdown'] = false;
|
||||
|
@ -9,7 +9,7 @@ if ($device['os'] == "papouch-tme")
|
||||
$descr = snmp_get($device, "SNMPv2-SMI::enterprises.18248.1.1.3.0", "-Oqv");
|
||||
$temperature = snmp_get($device, "SNMPv2-SMI::enterprises.18248.1.1.1.0", "-Oqv") / 10;
|
||||
|
||||
if ($descr != "" && $is_numeric($temperature) && $temperature > "0")
|
||||
if ($descr != "" && is_numeric($temperature) && $temperature > "0")
|
||||
{
|
||||
$temperature_oid = ".1.3.6.1.4.1.18248.1.1.1.0";
|
||||
$descr = trim(str_replace("\"", "", $descr));
|
||||
|
Reference in New Issue
Block a user