mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Bugfix
This commit is contained in:
@@ -100,7 +100,7 @@ if ($device['os'] == "apc")
|
||||
$lowlimit = snmp_get($device, $lowlimit_oid, "-Oqv", "");
|
||||
$warnlimit = snmp_get($device, $warnlimit_oid, "-Oqv", "");
|
||||
|
||||
if ($limit < 0 && $lowlimit < 0 && $warnlimit < 0)
|
||||
if ($limit != -1 && $lowlimit != -1 && $warnlimit != -1)
|
||||
discover_sensor($valid['sensor'], 'current', $device, $current_oid, $index, $type, $descr, '10', '1', $lowlimit, NULL, $warnlimit, $limit, $current);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user