Add support for v7 (#1835)

* Add support for v7

* Bump version
This commit is contained in:
Zoltán Bedi
2024-06-10 14:53:15 +02:00
committed by GitHub
parent 7664a75617
commit aecdb4bbee
8 changed files with 478 additions and 29 deletions

View File

@@ -599,7 +599,9 @@ export class Zabbix implements ZabbixConnector {
triggers = triggers.filter((trigger) => {
for (let i = 0; i < trigger.hosts.length; i++) {
const host = trigger.hosts[i];
if (proxy_ids.includes(host.proxy_hostid)) {
// Before version 7.0.0 proxy_hostid was used, after - proxyid
const proxyId = host.proxyid || host.proxy_hostid;
if (proxy_ids.includes(proxyId)) {
return true;
}
}