[ZBX-7318] Macro {NODE.NAME<1-9>} and {NODE.ID<1-9>} not expanded in autoregistration messages Created: 2013 Nov 07  Updated: 2017 May 30  Resolved: 2013 Nov 07

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

Type: Incident report Priority: Minor
Reporter: Petr Jendrejovský Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: actions, dm, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 2.2.0rc2 (revision 40078)
Linux XXXXX 3.2.0-55-generic #85-Ubuntu SMP Wed Oct 2 12:29:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
psql (PostgreSQL) 9.1.10
php 5.3.10-1ubuntu3.8



 Description   

When I create action (source "Autoregistration") with message "Host

{HOST.HOST}

[

{HOST.IP}

:

{HOST.PORT}

] registration on

{NODE.NAME} ({NODE.ID}) successful.", then in received message I can see macro {NODE.NAME}

as "UNKNOWN" and

{NODE.ID}

as "0". All other macros are expanded. I also tried

{NODE.NAME1}

and

{NODE.ID1}

, but result is the same.

My node has ID = 10, also name is set and database converted. Currently there is no other node defined. In 2.0.9 this macro is expanded correctly (on master and all slave nodes).



 Comments   
Comment by Petr Jendrejovský [ 2013 Nov 07 ]

Sorry, it was my fault, NodeID was missing in configuration file (overwritten by mistake)

Comment by richlv [ 2013 Nov 07 ]

reopen to fix resolution

Generated at Fri Apr 26 07:36:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.