Support of regsub() for LLD macros (ZBXNEXT-4627)

[ZBXNEXT-4656] Frontend Support of regsub() for LLD macros Created: 2018 Jul 27  Updated: 2024 Apr 10  Resolved: 2018 Aug 24

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F)
Affects Version/s: 4.0.0beta1
Fix Version/s: 4.0.0beta1, 4.0 (plan)

Type: Change Request (Sub-task) Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: lld, macros, regex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Selection_563.png     PNG File show-value.png    
Team: Team B
Team: Team A
Sprint: Sprint 37, Sprint 38, Sprint 39, Sprint 40, Sprint 41
Story Points: 3

 Description   

Frontend does not allow LLD function macros in trigger expression

Expression in trigger prototype:

{LLD function macro:key["{{#VALUE}.regsub(\"^([0-9]+)\", Server ID: \1)}"].last()}={{#VALUE}.regsub("^([0-9]+)", Server ID: \1)}

Manual update:

update triggers set expression='{17682}={{#VALUE}.regsub("^([0-9]+)", Server ID: \\1)}' where description='{#VALUE}';

Additional places where frontend does not allow LLD function macros
for item prototypes in:

  • update intervals;
  • history storage periods;
  • trend storage periods;
  • item value preprocessing steps;
  • HTTP agent required status codes field;
  • HTTP agent HTTP timeout field;

All places where LLD macro is supported must allow function macros.



 Comments   
Comment by Ivo Kurzemnieks [ 2018 Aug 01 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBXNEXT-4656

Comment by Alexander Vladishev [ 2018 Aug 21 ]

Available in 4.0.0alpha10 r84113.

Comment by Alexander Vladishev [ 2018 Aug 21 ]

(13) [D] API documentation needs to be updated

RESOLVED

iivs I slightly changed the sentence to be consistent with other records.
CLOSED

Generated at Fri Apr 19 14:01:56 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.