Fix: Update Zabbix API connector to handle versioning for 'with_hosts' parameter (#2049)

This changes the version number for `with_hosts` to return `real_hosts`
when version is 6.0.0 or below.

In 6.2 `real_hosts` is deprecated.
https://www.zabbix.com/documentation/6.2/en/manual/api/reference/hostgroup/get

In 6.0 it isn't.
https://www.zabbix.com/documentation/6.0/en/manual/api/reference/hostgroup/get

Fixes https://github.com/grafana/grafana-zabbix/issues/2048
This commit is contained in:
Zoltán Bedi
2025-07-10 17:28:04 +02:00
committed by GitHub
parent 30c0b0e982
commit bb6ade69c8
3 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
'grafana-zabbix': patch
---
Fix: `real_hosts` deprecated in version 6.2 and 6.4