[ZBX-15183]  {ITEM.LASTVALUE} is truncated in the description text box of the trigger Created: 2018 Nov 19  Updated: 2024 Apr 10  Resolved: 2018 Nov 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Documentation (D)
Affects Version/s: None
Fix Version/s: 4.2 (plan)

Type: Documentation task Priority: Trivial
Reporter: Edgar Akhmetshin Assignee: Martins Valkovskis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File ITEM.LASTVALUE-Issue1.png     JPEG File jvmheapdump.jpg    
Issue Links:
Causes
Duplicate
is duplicated by ZBXNEXT-1016 show full value for truncated entries... Reopened
Team: Team D
Sprint: Sprint 46, Nov 2018
Story Points: 0

 Description   

Steps to reproduce:

  1. Create trigger with Description field = {ITEM.LASTVALUE}
  2. Post/get some values for the item, fire up trigger, for example log item value:
    Filename:/srv/some/logs/java_pid9999.hprof Size:0 MB At: Oct 12 12:27
    

Result:



 Comments   
Comment by richlv [ 2018 Nov 19 ]

That's likely by design, ZBXNEXT-1016 asks for some more configurability there.

Comment by Alexander Vladishev [ 2018 Nov 20 ]

This works as designed. All strings with size more than 20 characters will be truncated to 20 characters while resolving {ITEM.VALUE} and {ITEM.LASTVALUE} macros.

From version 3.2 you can use macro functions to extract all text value: {{ITEM.LASTVALUE}.regsub("(.*)", \1)}.

Comment by Alexander Vladishev [ 2018 Nov 29 ]

Updated documentation (note on workaround to see full item values):

Generated at Wed Jul 30 03:04:05 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.