netbox-zabbix-sync/README.md
2021-04-11 20:07:37 +02:00

907 B

A script to sync the Netbox inventory to Zabbix.

Requires pyzabbix and pynetbox

Use the following variables for the environment:

Logs are generated under sync.log, set the script for debugging / info options etc.

Important: you need to set the hostgroup in Zabbix before a sync can occur. This is in the following format:

{Site name}/{Manufacturer name}/{Device role name}

Make sure that the Zabbix user has proper permissions to create hosts

Use the following custom fields in Netbox to map the Zabbix URL:

  • Type: Integer
  • Name: zabbix_hostid
  • Required: False
  • Default: null
  • Object: dcim > device

And this field for the Zabbix template

  • Type: Text
  • Name: zabbix_template
  • Required: False
  • Default: null
  • Object: dcim > device_type