[ZBX-5329] "trigger exprission macro" with nested {HOST.NAME} macro is not expaded fully in actions Created: 2012 Jul 16  Updated: 2017 May 30  Resolved: 2012 Jul 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: actions, macros, nested
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Macros in an action:
HOST.NAME: {{HOST.NAME}:test.item.last(0)}
HOST.HOST: {{HOST.HOST}:test.item.last(0)}

in an alert will be expanded to:
HOST.NAME:

{it0:test.item.last(0)}

HOST.HOST: 21

Note that with the

{HOST.HOST} it works correctly, but with the {HOST.NAME} - it doesn't expanded fully.

Of course the macro {HOST.NAME} is new for version 2.0 but it must work identically to the {HOST.HOST}

(a replacement for

{HOSTNAME}

)

http://www.zabbix.com/documentation/2.0/manual/appendix/macros/supported_by_location



 Comments   
Comment by Alexander Vladishev [ 2012 Jul 17 ]

Marcos

{HOSTNAME}

and

{HOST.HOST}

return technical host names, but

{HOST.NAME}

returns visible host name.

In trigger expressions and macros like

{host:key.func()}

we use only technical host names.

Generated at Thu Apr 25 08:51:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.