5.0
2021-03-10T18:50:24Z
MailGraph
WEBHOOK
baseURL
https://mydomain.com/zabbix/
duration
{EVENT.DURATION}
eventId
{EVENT.ID}
eventValue
{EVENT.VALUE}
graphHeight
120
graphWidth
300
HTTPProxy
itemId
{ITEM.ID}
periods
10m,4h,1d,7d
periods_headers
Last 10 minutes,Last 4 hours,Last day,Last 7 days
recipient
{ALERT.SENDTO}
showLegend
0
subject
{{ HOST_NAME|raw }}: ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}
triggerId
{TRIGGER.ID}
URL
https://mydomain.com/mailGraph.php
YES
The "URL" must point to the location of the processing script. If a proxy is required, define "HTTPProxy" for the proxy address.
Customization:
- "graphWidth" and "graphWidth" can be defined for the image size
- "showLegend" can be defined to show or hide the legend of the graph
- "subject" can be defined for a customized subject for the mail message
The html.template and plain.template files can be adjusted (TWIG format).
More details are available at https://github.com/moudsen/mailGraph
TRIGGERS
PROBLEM
Problem: {EVENT.NAME}
Problem started at {EVENT.TIME} on {EVENT.DATE}
Problem name: {EVENT.NAME}
Host: {HOST.NAME}
Severity: {EVENT.SEVERITY}
Operational data: {EVENT.OPDATA}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
eventId: {EVENT.ID}
TriggerId: {TRIGGER.ID}
itemId: {ITEM.ID]
TRIGGERS
RECOVERY
Resolved in {EVENT.DURATION}: {EVENT.NAME}
Problem has been resolved at {EVENT.RECOVERY.TIME} on {EVENT.RECOVERY.DATE}
Problem name: {EVENT.NAME}
Problem duration: {EVENT.DURATION}
Host: {HOST.NAME}
Severity: {EVENT.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
eventId: {EVENT.ID}
TriggerId: {TRIGGER.ID}
itemId: {ITEM.ID]
TRIGGERS
UPDATE
Updated problem in {EVENT.AGE}: {EVENT.NAME}
{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}.
{EVENT.UPDATE.MESSAGE}
Current problem status is {EVENT.STATUS}, age is {EVENT.AGE}, acknowledged: {EVENT.ACK.STATUS}.
eventId: {EVENT.ID}
TriggerId: {TRIGGER.ID}
itemId: {ITEM.ID]