Ad Widget

Collapse

Attach graph in email

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TDex96
    Junior Member
    • Jan 2021
    • 14

    #1

    Attach graph in email

    Hey guys! Now i started my journey with Zabbix. The next step is to format the email alerts, especially the Problem emails. I edited the template to attach an url, which is works fine. This is my actual template:
    Email(HTML)
    Code:
    <b>Problem started</b> at {{EVENT.TIME}.htmlencode()} on {{EVENT.DATE}.htmlencode()}<br>
    <b>Problem name:</b> {{EVENT.NAME}.htmlencode()}<br>
    <b>Host:</b> {{HOST.NAME}.htmlencode()}<br>
    <b>Severity:</b> {{EVENT.SEVERITY}.htmlencode()}<br>
    <b>Operational data:</b> {{EVENT.OPDATA}.htmlencode()}<br>
    <b>Original problem ID:</b> {{EVENT.ID}.htmlencode()}<br><br>
    <b>URL:</b><a href="https://zabbix.xxxxx.xxxx/zabbix.php?action=problem.view&triggerid={{{TRIGGE R.ID}}}">Open Trigger</a><br>
    I tried the, Latest graph: {EVENT.GRAPH} but nothing. What i want is, when i got a Problem email for example, because the CPU load is higher than 90%, i want ot attach graph also in the email. Is it possible or no? If yes, how?

    Zabbix version is 7.0 LTS.
  • Answer selected by TDex96 at 29-04-2025, 15:33.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    There is no such macro as {EVENT.GRAPH} ..
    But basically... you cannot attach a graph to your email.. Those are always rendered, so there is no option to "save" the pic and send it...

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #2
      There is no such macro as {EVENT.GRAPH} ..
      But basically... you cannot attach a graph to your email.. Those are always rendered, so there is no option to "save" the pic and send it...

      Comment

      • TDex96
        Junior Member
        • Jan 2021
        • 14

        #3
        Ah okay, thank you the answer!

        Comment

        • jtnfoley
          Member
          • Mar 2022
          • 76

          #4
          I have not had time to implement this myself, but intend to when my 7.2 migration is done. I'm not sure if there's anything else out there in the community, this one caught my eye quite a while ago.
          Zabbix Media module and scripts for sending templated e-mail alerts enriched with multiple configurable graphs and associated event information - moudsen/mailGraph

          Comment

          Working...