From 489a70b7039552212dcd65cd406ddd0d432882ba Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 23 Feb 2026 13:15:15 +0100 Subject: [PATCH] Modified API call to sites.all for testing the API connection to devices.count. --- netbox_zabbix_sync/modules/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_zabbix_sync/modules/core.py b/netbox_zabbix_sync/modules/core.py index b48c5dc..22ece3f 100644 --- a/netbox_zabbix_sync/modules/core.py +++ b/netbox_zabbix_sync/modules/core.py @@ -91,7 +91,7 @@ class Sync: logger.debug("NetBox version is %s.", nb_version) # Test API access by attempting to access a basic endpoint # This will catch authorization errors early - netbox.dcim.sites.all() + netbox.dcim.devices.count() self.netbox = netbox self.nb_version = nb_version except RequestsConnectionError: