Perhaps I haven't found the right combination of quotes/parenthesis/etc, but when I try to use Zabbix built in macros, specifically {HOST.HOST} or {HOST.NAME} within a trigger expression like this:
It seems like macro is not expanded and just read literally. I can use a user macro with the same syntax without issue. The following works:
Is there a way for me to use the built in macro within the quotes or do I need to use the user macro due to the quotes?
If I do have to use a user macro, is there any way for me to create a user macro from a built in macro without having to create one on each host manually?
Code:
find(/BBU SNMP TRAPS/snmptrap.fallback,,,"{HOST.HOST}")=1
Code:
find(/BBU SNMP TRAPS/snmptrap.fallback,,,"{$BBU.NAME}")=1
If I do have to use a user macro, is there any way for me to create a user macro from a built in macro without having to create one on each host manually?

Comment