From ffc2aa19472596856fe6f8a9397fe498b4a76bc5 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Thu, 31 Oct 2024 20:03:09 +0100 Subject: [PATCH] Fixed location hostgroup bug --- netbox_zabbix_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_zabbix_sync.py b/netbox_zabbix_sync.py index 658713d..bcf4558 100755 --- a/netbox_zabbix_sync.py +++ b/netbox_zabbix_sync.py @@ -79,7 +79,7 @@ def main(arguments): netbox = api(netbox_host, token=netbox_token, threading=True) # Check if the provided Hostgroup layout is valid hg_objects = hostgroup_format.split("/") - allowed_objects = ["dev_location", "role", "manufacturer", "region", + allowed_objects = ["location", "role", "manufacturer", "region", "site", "site_group", "tenant", "tenant_group"] # Create API call to get all custom fields which are on the device objects device_cfs = netbox.extras.custom_fields.filter(type="text", content_type_id=23)