[ZBXNEXT-2769] User macros in trigger severity Created: 2015 Apr 08  Updated: 2022 Jul 11

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: 2.4.4
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Fernando Schmitt Assignee: Unassigned
Resolution: Unresolved Votes: 34
Labels: macros, triggerseverities
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-5508 Implement trigger severity via macros Open

 Description   

Allow specify the severity of triggers using macros, that take values from 1 to 6. That would simplifiy setups where the same trigger can have different severities, depending on the host priority (say, production, development etc).



 Comments   
Comment by Fernando Schmitt [ 2015 Apr 08 ]

It would be a nice feature in combination with hostgroup level macros: https://support.zabbix.com/browse/ZBXNEXT-1191

Comment by Marc [ 2015 Apr 08 ]

Beside support of User macros, I'd very appreciate support of LLD macros (in prototypes) as well.

Comment by richlv [ 2016 Aug 03 ]

trying to think of the implementation, the existing severity selector would turn into one of two radiobutton choices. the other would be an input field that would allow specifying user macrovariable name.
or even better - there would be an additional field. the selected severity would be used only if no macro was present. that way the interface would be simpler and a fallback could be configured easily.

there should probably be warnings both in the interface and in the server logfile when a severity macro would resolve to an invalid value (like "damn" or an invalid number)

Comment by Aecio Pires [ 2016 Aug 03 ]

A great use case for this is the possibility of you customize a script the value of the severity of the triggers for each type of item or alarm. This script generates the output in JSON and can be easily used in templates that use the LLD feature.

In this post (in Portuguese) there is a script and a real scenario that uses all. The only thing that can not automate is precisely the severity of the triggers.

http://zabbixone.com/?p=364

In this post, it is simulated a web application that manages events to be read by a script that generates the output in JSON to be monitored by Zabbix.

Comment by Andrey Tocko [ 2022 Jul 07 ]

For Log monitoring case we often receive full set of data per event entry, which already include severity inside.
It could be nice to use {ITEM.VALUE} with regsub to extract severity and spawn event without defining multiple triggers.
Would be nice to be able to change severity of existing events also.

Generated at Fri Mar 29 14:11:40 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.