[ZBXNEXT-2769] User macros in trigger severity Created: 2015 Apr 08  Updated: 2016 Aug 03

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: 21
Labels: macros, triggerseverities


 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.

Generated at Sun Aug 19 06:31:06 EEST 2018 using JIRA 7.3.9#73021-sha1:26adfd3d76803e1a04219c5cd05b58dbafff0dbf.