Error discovering ports-stack module for 10.0.0.10. ArgumentCountError: Too few arguments to function LibreNMS\Modules\PortsStack::LibreNMS\Modules{closure}(), 2 passed and exactly 3 expected in /opt/librenms/LibreNMS/Modules/PortsStack.php:78
Stack trace:
#0 [internal function]: LibreNMS\Modules\PortsStack->LibreNMS\Modules{closure}()
#1 /opt/librenms/LibreNMS/Data/Source/SnmpResponse.php(248): call_user_func()
#2 /opt/librenms/LibreNMS/Modules/PortsStack.php(90): LibreNMS\Data\Source\SnmpResponse->mapTable()
#3 /opt/librenms/includes/discovery/ports-stack.inc.php(8): LibreNMS\Modules\PortsStack->discover()
#4 /opt/librenms/includes/discovery/functions.inc.php(170): include(‘…’)
#5 /opt/librenms/discovery.php(108): discover_device()
#6 {main}
Too few arguments to function LibreNMS\Modules\PortsStack::LibreNMS\Modules{closure}(), 2 passed and exactly 3 expected {“exception”:“[object] (ArgumentCountError(code: 0): Too few arguments to function LibreNMS\Modules\PortsStack::LibreNMS\Modules\{closure}(), 2 passed and exactly 3 expected at /opt/librenms/LibreNMS/Modules/PortsStack.php:78)”}
/opt/librenms/discovery.php 1 2025-04-06 00:33:11 - 1 devices discovered in 9.687 secs
/opt/librenms/discovery.php 4 2025-04-06 00:33:16 - 1 devices discovered in 3.949 secs
/opt/librenms/discovery.php 3 2025-04-06 00:33:18 - 1 devices discovered in 1.952 secs
/opt/librenms/discovery.php 2 2025-04-06 00:33:20 - 1 devices discovered in 1.725 secs
/opt/librenms/discovery.php new 2025-04-06 00:35:02 - 0 devices discovered in 0.001 secs