Ad Widget

Collapse

How to add context to alert emails?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yatesco
    Junior Member
    • May 2010
    • 23

    #1

    How to add context to alert emails?

    Hi,

    I have everything setup so I receive email alerts, but unfortunately they don't really give me any context.

    For example, I receive an email saying the number of processes is too high, but it would be nice if (similar to nagios) it told me how many processes were running.

    Equally, I have an item log[/var/log/auth.log,fail*] and an associated trigger "{Template_Linux:log[/var/log/auth.log,fail*].diff(0)}>0" and I do indeed get an email whenever somebody fails to log in. Unfortunately I have no idea which of the many boxes the alert came from

    Is there any way of adding more context to emails?

    Thanks,

    Col
  • yatesco
    Junior Member
    • May 2010
    • 23

    #2
    Anybody?

    I hate bumping threads for the sake of it, but I really really want to use Zabbix as a central monitoring system and this is a real achilles heal.

    For example, I received 28 emails with the subject and body: "fail2ban activate on Template_Linux: PROBLEM"

    I really don't want to have to define an item/trigger for every single host

    I must be doing something really wrong and missing the point, or almost everybody has run into this problem - what do you all do?

    Many thanks

    Col

    Comment

    • MrKen
      Senior Member
      • Oct 2008
      • 652

      #3
      You can add context to emails by using Macros in the Alert Message setup.

      For example, to get the number of running processes with the alert, you can use {ITEM.LASTVALUE}.

      There are many macros for different situations: http://www.zabbix.com/documentation/1.8/manual/config/macros

      HTH
      MrKen
      Disclaimer: All of the above is pure speculation.

      Comment

      • yatesco
        Junior Member
        • May 2010
        • 23

        #4
        Excellent - thanks, I will take a butchers.

        Comment

        Working...