Ad Widget

Collapse

Want to send email based on trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cevyn
    Member
    • Nov 2008
    • 31

    #1

    Want to send email based on trigger

    new to Zabbix but learning curve is pretty short for most things. Running 1.6.

    But having a little trouble with email notification.

    Reading manual makes it look like I start with an action and associate it with a trigger I want to focus on. Looked over the action definition and I don't see enough examples to implement it. Then manual discusses enabling media type as well.

    Notification also seems related to level of trigger and type of user from reading on this forum.

    Does anyone have a good summary of this or can these elements be exported as XML file so I can import one as a sample. or a simple chart of hwo this flows. I'm sure this all make sense once I fight through it. I'm just trying to not re-invent the wheel and spend too much time on the mechanics of how it works , rather spend time implementing for what I need to monitor. Many thanks
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    First you have to set up your media types. So, in the GUI, go to Administration --> Media Types and enter in the appropriate information:

    Code:
     
    Description: E-mail alerts
    Type:  Email 
    SMTP server: mailhub.mycompany.com
    SMTP helo: localhost   
    SMTP email: [email protected]
    The last line above will be the "From" header in the e-mail. I have a few Zabbix servers, so I include the last octet of the IP address so I easily know which server sent the alert.

    Next, go to Administration --> Users and select the individual user you want alerts sent to. Under the "Media" row, select "Add" and enter the information as appropriate. The "Send to" field will be the actual e-mail address you want the alerts going to.

    Now go to Configuration --> Actions and complete the various sections as needed. Since you want to be notified of a specific trigger, then select the "New condition" of "Trigger =" and select the appropriate trigger from the dropdown box for the correct host. See my screenshot at the bottom of this post.

    Lastly, make sure that the user you are setting this up for has e-mail alerts enabled and that you have the correct severity levels also enabled. For instance, I only want to be notified of alert levels "High" and "Disaster", so even if I have a trigger set to alert me and it is only a "Medium" severity, I won't get it.
    Attached Files

    Comment

    • js1
      Member
      • Apr 2009
      • 66

      #3
      Is there a way to debug this? I configured my Actions just as described in the previous post, and I don't see any indication that my zabbix server is even attempting to send out email notifications.

      Comment

      • harmonica
        Senior Member
        • Jan 2009
        • 251

        #4
        Which is your environment? Have you sendmail ou postfix relay mail to a exchange server?
        The user who receives mails it has that to have permissions.

        http://www.zabbix.com/wiki/doku.php?id=howto:actions


        Regards
        Last edited by harmonica; 27-05-2009, 10:47.

        Comment

        • pesadilla
          Member
          • Nov 2006
          • 69

          #5
          Administration->Audit->Audit actions

          Comment

          • js1
            Member
            • Apr 2009
            • 66

            #6
            Thanks for your replies. This post from one of the above links helped me out. I posted a followup to my original question.

            It appears that the trick is to have the Trigger value set as a condition as well as the Trigger itself. Though, I also found out that the Trigger value condition is necessary and sufficient, while the Trigger condition is neither. This seems rather confusing.

            Comment

            Working...