[ZBX-16005] Simple macros containing regsub in event names are upgraded to *UNKNOWN* Created: 2019 Apr 16  Updated: 2024 Apr 10  Resolved: 2019 May 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.6, 4.2.0, 4.4.0alpha1, 4.4 (plan)
Fix Version/s: 4.0.8rc1, 4.2.2rc1, 4.4.0alpha1, 4.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: events, triggers, unknown, upgrade
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-17407 Problem with displaying "problem name... Closed
Team: Team A
Sprint: Sprint 51 (Apr 2019)
Story Points: 0.5

 Description   

Generate problem event with following trigger in 3.4 and value 13:

trap1_trig {ITEM.VALUE} {ITEM.LASTVALUE} {{ITEM.VALUE}.regsub("([0-9])", \0)}

Perform upgrade to 4.0:

See:

trap1_trig 13 13 *UNKNOWN*

Expected:

trap1_trig 13 13 1

regsub is not handled properly



 Comments   
Comment by Vladislavs Sokurenko [ 2019 Apr 16 ]

Fixed in development branch:
svn://svn.zabbix.com/branches/dev/ZBX-16005

Comment by Vladislavs Sokurenko [ 2019 Apr 24 ]

Fixed in:

  • pre-4.0.8rc1 cc527854282
  • pre-4.2.2rc1 d4a11331804
  • pre-4.4.0alpha1 fcac632a407
Generated at Fri May 23 07:29:40 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.