From d09c5540edd531cdee1d8dc5e575e26133ba6467 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 10 Apr 2023 12:07:32 -0500 Subject: [PATCH] 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. --- LibreNMS/Data/Source/NetSnmpQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Data/Source/NetSnmpQuery.php b/LibreNMS/Data/Source/NetSnmpQuery.php index 5c32c75874..fb8efe9236 100644 --- a/LibreNMS/Data/Source/NetSnmpQuery.php +++ b/LibreNMS/Data/Source/NetSnmpQuery.php @@ -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