TheNetworkGuy / netbox-zabbix-sync

Python script to synchronise Netbox devices to Zabbix.
MIT License
118 stars 27 forks source link

Device hostgroup not updated with -H flag #6

Closed TheNetworkGuy closed 3 years ago

TheNetworkGuy commented 3 years ago

In specific instances (for example with implementing tenants in the hostgroup with -t) the update process won't be able to create a new hostgroup and thus is not able to find the hostgroup.

To prevent this, the logic that calculates the hostgroup creation needs to be before any device consistency checks and device creation checks since these are the only 2 actions that require a hostgroup creation / sync.