mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
# Template logic.
|
|
# Set to true to enable the template source information
|
|
# coming from config context instead of a custom field.
|
|
templates_config_context = False
|
|
# Set to true to give config context templates a
|
|
# higher priority then custom field templates
|
|
templates_config_context_overrule = False
|
|
|
|
# Set template and device Netbox "custom field" names
|
|
# Template_cf is not used when templates_config_context is enabled
|
|
template_cf = "zabbix_template"
|
|
device_cf = "zabbix_hostid"
|
|
|
|
# Netbox to Zabbix device state convertion
|
|
zabbix_device_removal = ["Decommissioning", "Inventory"]
|
|
zabbix_device_disable = ["Offline", "Planned", "Staged", "Failed"]
|
|
|
|
# Custom filter for device filtering. Variable must be present but can be left empty with no filtering.
|
|
# A couple of examples are as follows:
|
|
|
|
# nb_device_filter = {} #No filter
|
|
# nb_device_filter = {"tag": "zabbix"} #Use a tag
|
|
# nb_device_filter = {"site": "HQ-AMS"} #Use a site name
|
|
# nb_device_filter = {"site": ["HQ-AMS", "HQ-FRA"]} #Device must be in either one of these sites
|
|
# nb_device_filter = {"site": "HQ-AMS", "tag": "zabbix", "role__n": ["PDU", "console-server"]} #Device must be in site HQ-AMS, have the tag zabbix and must not be part of the PDU or console-server role
|
|
|
|
# Default device filter, only get devices which have a name in Netbox.
|
|
nb_device_filter = {"name__n": "null"} |