[ZBXNEXT-2831] Changing the default notification message Created: 2015 May 27 Updated: 2022 Jun 29 Resolved: 2022 Jun 29 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | 2.4.5 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Trivial |
Reporter: | Adam Mclean | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | actions, macros, templates, usability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Hi there, I'm wondering how I can change the default notification message that is offered when someone is creating a new 'action'. I've found it in this file: define('ACTION_DEFAULT_MSG_TRIGGER', "Trigger: {TRIGGER.NAME}\nTrigger status: {TRIGGER.STATUS}\n". "Trigger severity: {TRIGGER.SEVERITY}\nTrigger URL: {TRIGGER.URL}\n\nItem values:\n\n". "1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\n". "2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\n". "3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\n\n". "Original event ID: {EVENT.ID}" ); However this file will probably be 'squashed' by an upgrade. Is there a 'correct' way to over-ride this value? Thanks. |
Comments |
Comment by Aleksandrs Saveljevs [ 2015 May 27 ] |
The only way to change the default message is to change ACTION_DEFAULT_MSG_TRIGGER as you described. However, it might be useful to let users customize the default, so moving this issue to ZBXNEXT. |
Comment by Oleksii Zagorskyi [ 2015 May 29 ] |
I recall similar discussion in the past, but with a bit different aspect - "templates for actions". The idea would resolve current original request. Idea is to have sort of templates for actions - easy update some action fields, like subject and body, maybe some other too. One of possible implementation is a user macro containing multi-line value (like message subject/body currently), expanded in action fields. |
Comment by richlv [ 2015 Jun 02 ] |
action message "templates" have been discussed quite a few times, and i was sure there's an existing issue. can't find anything like that, though when such templates would be configured, one would just choose them in the action, with a potential to customise - somehow |
Comment by Adam Mclean [ 2015 Jun 02 ] |
For my use case I intend on sending basically every macro to an external script then putting the logic in there for what to do with them. So having a complex default in place would be fine. Since there are so many possibilities where ITEM.ID1-9 may or may not be populated you really need something scripted to make decisions whether to present that in your email payload. The barrage of UNKNOWN is confusing. |
Comment by Alexei Vladishev [ 2022 Jun 29 ] |
I believe we can close it since we already support message templates for each media type. |