[ZBX-22197] Functions in Messagetemplates are all Resolved to {ITEM.VALUE1} Created: 2023 Jan 11  Updated: 2023 Feb 15

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 6.2.6
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Nico Hänsel Assignee: Aleksandrs Petrovs-Gavrilovs
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-01-11-10-03-09-143.png     PNG File image-2023-01-11-10-03-47-011.png     PNG File image-2023-01-11-10-05-14-768.png    
Issue Links:
Duplicate
duplicates ZBX-21922 Expression macro might get expanded u... Closed

 Description   

Steps to reproduce:

Every Item Funktion in Message Templates is resoved to the {item.lastvalue} Value.

 

e.g. Alarm for Printer Toner below 20%... the Toner Value is 19

 

In the Message I have something like:

Toner-Value: {item.lastvalue} 

Modell: {?last(/

{HOST.HOST}

/deviceModel)}

 

In the Message I recive

 

Toner-Value: 19

Modell: 19

 

-> in the Message, the Funktion it is not Resolve to "HP Laserjet", it is resolved as "19"... the Value of the Item that Trigger

 

Expected:

For Funktion of  Host Inventory Field it work.



 Comments   
Comment by Nico Hänsel [ 2023 Jan 11 ]

Message Template used in Trigger Action:

Problem gemeldet um {EVENT.TIME} am {EVENT.DATE}

Problem name: {EVENT.NAME}
Host: {HOST.NAME}
Modell: {INVENTORY.MODEL}
Modell:  {?last(/

{HOST.HOST}/deviceModel)}
Seriennummer: {INVENTORY.SERIALNO.A}

Standort: {INVENTORY.LOCATION1}
Ansprechpartner vor Ort: {INVENTORY.CONTACT1}
Seitenzähler: {?last(/{HOST.HOST}

/prtMarkerLifeCount2)}
URL: http://\

{HOST.IP}

Schwere: {TRIGGER.SEVERITY}

Original problem ID: {EVENT.ID}

{TRIGGER.URL}
Comment by Nico Hänsel [ 2023 Jan 11 ]

"Modell" ITEM:

 

Trigger:

 

 

Comment by Aleksandrs Petrovs-Gavrilovs [ 2023 Jan 13 ]

Hello and thank you for registering the issue!

This looks like a duplicate of ZBX-21922, and expected to be fixed in 6.2.7
For now I will be closing this as duplicate!

Best Regards,
Aleksandrs

Comment by Nico Hänsel [ 2023 Feb 15 ]

Hello

Yes it is the same as ZBX-21922 but now I am on 6.2.7 but the Problem still not resolved...

Generated at Fri Jan 10 03:54:38 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.