Updated docs for VM inventory

This commit is contained in:
Raymond Kuiper 2025-02-14 16:35:40 +01:00
parent c67180138e
commit 72558d3825

View File

@ -292,15 +292,18 @@ You can set the inventory mode to "disabled", "manual" or "automatic" with the
[Zabbix Manual](https://www.zabbix.com/documentation/current/en/manual/config/hosts/inventory#building-inventory) [Zabbix Manual](https://www.zabbix.com/documentation/current/en/manual/config/hosts/inventory#building-inventory)
for more information about the modes. for more information about the modes.
Use the `inventory_map` variable to map which NetBox properties are used in Use the `device_inventory_map` variable to map which NetBox properties are used in
which Zabbix Inventory fields. For nested properties, you can use the '/' which Zabbix Inventory fields. For nested properties, you can use the '/'
seperator. For example, the following map will assign the custom field seperator. For example, the following map will assign the custom field
'mycustomfield' to the 'alias' Zabbix inventory field: 'mycustomfield' to the 'alias' Zabbix inventory field:
For Virtual Machines, use `vm_inventory_map`.
``` ```
inventory_sync = True inventory_sync = True
inventory_mode = "manual" inventory_mode = "manual"
inventory_map = { "custom_fields/mycustomfield/name": "alias"} device_inventory_map = {"custom_fields/mycustomfield/name": "alias"}
vm_inventory_map = {"custom_fields/mycustomfield/name": "alias"}
``` ```
See `config.py.example` for an extensive example map. Any Zabix Inventory fields See `config.py.example` for an extensive example map. Any Zabix Inventory fields