I'm looking for a way to create similar HTTP items for each host in a group. Each of the hosts would need a bit different request body. In this case that would be as simple as using {HOST.HOST} for specific parameters.
So I have a host group. I add it to the template and create an item for the template, but it seems I can't use default macros for item names, keys or in my case - http requests.
Only stuff about templates and macros is this from the Template docs: "User macros, {INVENTORY.*} macros, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros are supported in tags." So it seems I can safely assume that macros are not supported in templates.
However what would be the best way to do what I have outlined in the beginning of this post? Creating item for each of the hosts is doable at the moment, but I want a central place where I can make edits as needed for these items. Feels like I'm missing something.
I'm running Zabbix 5.0 btw.
Edit: wording
So I have a host group. I add it to the template and create an item for the template, but it seems I can't use default macros for item names, keys or in my case - http requests.
Only stuff about templates and macros is this from the Template docs: "User macros, {INVENTORY.*} macros, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros are supported in tags." So it seems I can safely assume that macros are not supported in templates.
However what would be the best way to do what I have outlined in the beginning of this post? Creating item for each of the hosts is doable at the moment, but I want a central place where I can make edits as needed for these items. Feels like I'm missing something.
I'm running Zabbix 5.0 btw.
Edit: wording
That quote just says, you can use those macros in tags, it does not say anything about them not being usable in templates.
Comment