apiwebhookszabbixzabbix-api

Zabbix Media Type Parameters not replaced correctly


I'm trying to call an API with Zabbix when there is a security warning

settings

But when I receive the warning, some elements are not replaced.

However, the HOSTID parameters seems to exist in the Zabbix documentation

Here is the object I receive

received object


Solution

  • {HOST.HOSTID} is a non-existent macro, there isn't a direct mapping from the api fields and the macros.

    You should use {HOST.ID}

    You can find the complete macro by location list here