[ZBXNEXT-115] Macros for including value mapping values in actions and/or triggers Created: 2009 Nov 03  Updated: 2023 Aug 03

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: Mārcis Lielturks Assignee: Unassigned
Resolution: Unresolved Votes: 10
Labels: macros, valuemapping
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix_server, zabbix GUI


Attachments: PNG File image-2023-08-03-12-26-40-139.png     PNG File image-2023-08-03-12-27-40-981.png    

 Description   

It would be useful to have macros that allow to include mapped values from items (not actual numbers) in action messages and, possibly, in triggers too. This way message from monitoring system to average user at support could provide more sense.

For example, action message with macros "

{HOSTNAME}

{ITEM.NAME}

reported

{ITEM.MAPEDVALUE}

" that translates to
"db-server database backup returned ERROR"
is more user-friendly than
"db-server database backup returned 1"



 Comments   
Comment by richlv [ 2009 Nov 03 ]

in general, there should be 3 macros available :

1. default - mapped value & raw value, like in frontend - Normal (2)
2. raw value only
3. mapped value only

Comment by Raymond Kuiper [ 2012 Oct 15 ]

I really like the idea behind this one!
This could be a real use for value mappings.

Comment by Rafael Bianco Nacif [ 2023 Aug 03 ]

I believe this could be useful. I created a item widget which I use to monitor some DNS servers. I created for those itens some mapped values. I would like to configure my item widget to be visual, something like a simple KPI index. The best I could do was to show Up (1). I would love to show only "Up", which is the mapped value for this item.

I could use a macro {$ITEM.MAPPEDVALUE} as a description in my case.

 

 

Cheers!

Generated at Fri Apr 26 22:56:22 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.