unioslo / zabbix-auto-config

MIT License
2 stars 5 forks source link

Add Zabbix 7.0 compatibility #79

Closed pederhan closed 4 months ago

pederhan commented 6 months ago

This PR adds Zabbix 7.0 compatibility. There are numerous API changes in 7.0, for which a new compat.py module has been added. This module adds functions that take in the current Zabbix API version and return the correct API method parameter / object property name.

The current implementation is a bit messy, and we will have to consider if we want to refactor all the API calls. Constructing large parameter dicts inline leads to some readability issuses, which we should try to mitigate. It's already kind of overloaded with long names and such.

pederhan commented 4 months ago

Changing destination branch to zabbix-7 so that we can merge this while iterating on other features targeting Zabbix 7.0.