mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added index to snmp get
This commit is contained in:
@@ -184,9 +184,9 @@ if ($device['os'] == "apc")
|
||||
$low_limit_warn = NULL;
|
||||
$warn_limit = NULL;
|
||||
$high_limit = NULL;
|
||||
$oids = snmp_get($device, $item['HighPrecOid'], "-OsqnU", $item['mib']);
|
||||
$oids = snmp_get($device, $item['HighPrecOid'].'.'.$item['index'], "-OsqnU", $item['mib']);
|
||||
if (empty($oids)) {
|
||||
$oids = snmp_get($device, $item['AdvOid'], "-OsqnU", $item['mib']);
|
||||
$oids = snmp_get($device, $item['AdvOid'].'.'.$item['index'], "-OsqnU", $item['mib']);
|
||||
$current_oid = $item['AdvOid'];
|
||||
} else {
|
||||
$current_oid = $item['HighPrecOid'];
|
||||
|
||||
Reference in New Issue
Block a user