Hello,
my LibreNMS version is 1.45-16-g01666e5.
If I run:
curl -k -H ‘X-Auth-Token: xyz’ https://librenms.local.net/api/v0/resources/ip/arp/192.168.0.0/24
Then the following error is displayed in the log:
production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function cidr2long() in /opt/librenms/html/includes/api_functions.inc.php:2043
Stack trace:
#0 [internal function]: list_arp(‘192.168.1.0/24’)
#1 /opt/librenms/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(‘list_arp’, Array)
#2 /opt/librenms/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#3 /opt/librenms/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
…
If I copy the function cidr2long() from IPv4.php to api_functions.inc.php all works like a charm.
Can you fix the error please.