moudsen / mailGraph

Zabbix Media module and scripts for sending templated e-mail alerts enriched with multiple configurable graphs and associated event information
MIT License
32 stars 5 forks source link

To make it possible to direct MailGraph to a specific graph that is not directly associated to the applicable item #5

Closed moudsen closed 3 years ago

moudsen commented 3 years ago

Currently the process to attach a graph to the triggered item depends on the associated items to the trigger function. When at least 1 graph is found that has a matching item key of the item that was triggered, that graph will be embedded in the message. To allow for a more flexibel graph search/targeting model, a TAG could indicate the graph that MailGraph should use for the specific report.

moudsen commented 3 years ago

v1.18 has code to accomplish this by picking up a "mailGraph.graph" tag from the respective Trigger. Also have added code to set a different graph period for this Trigger with "mailGraph.period" tag.