Python script to synchronise Netbox devices to Zabbix.
Go to file
2021-04-11 20:07:37 +02:00
LICENSE Initial commit 2021-04-11 19:39:48 +02:00
netbox_zabbix_sync Added sync script 2021-04-11 20:07:37 +02:00
README.md Added sync script 2021-04-11 20:07:37 +02:00
requirements.txt Added sync script 2021-04-11 20:07:37 +02:00

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