Ad Widget

Collapse

Zabbix mail alert - add url to web interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steph
    Junior Member
    • Sep 2013
    • 5

    #1

    Zabbix mail alert - add url to web interface

    Hello all,

    I'm using Zabbix with email alerts.
    I would be very happy if I can put a link to the web interface directly in the email.
    There is a field TRIGGER.URL, but it's not what we expect.

    For example, for an alarm raised on host SERVER01, I would like the following email. In bold what I don't know to add.

    Object: Problem on SERVER01: System not on time
    >Trigger: SERVER01 not on time (more than 20 minutes delta)
    >Trigger status: PROBLEM
    >Trigger severity: Major system issue
    >Trigger URL:
    >
    >Item values:
    >1. SYS/LINUX Delta in seconds with reference time : 4322
    >
    > Show value history for system.timedelta:
    > [link to http://zabbixserver/zabbix/history.p...a08dc654f4d2d6 ]
    >


    Any idea ?

    Thanks a lot,
    Stéphane
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello Stéphane,

    Go to Configuration -> Actions, select the action that sends your emails, and add the following lines:

    Code:
    Show value history for system.timedelta: 
    http://zabbixserver/zabbix/history.php?form_refresh=1&itemids%5B0%5D={ITEM.ID1}&action=showvalues
    This should get you straight to history view for that item what caused the alarm.
    Note that to have to be logged in first.

    Best Regards,
    Ingus

    Comment

    Working...