[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: |
|
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. 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. 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. |