mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix SnmpQuery and max_oid (#14955)
If the snmpget had less oids than the max, it would run them one at a time instead of all together.
This commit is contained in:
@@ -506,7 +506,7 @@ class NetSnmpQuery implements SnmpQueryInterface
|
||||
return array_chunk($oids, $max_oids);
|
||||
}
|
||||
|
||||
return $oids;
|
||||
return [$oids]; // wrap in array for execMultiple so they are all done at once
|
||||
}
|
||||
|
||||
private function parseOid(array|string $oid): array
|
||||
|
Reference in New Issue
Block a user