Ad Widget

Collapse

how to make zabbix send email notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jdetert
    Junior Member
    • Nov 2010
    • 5

    #1

    how to make zabbix send email notifications

    I'm running the Zabbix 1.8 Appliance.

    I want Zabbix to email notification of problems, and to email corresponding recovery notifications.

    For the life of me, I haven't been able to make it happen.

    Here's how i've gone about it:
    - configuration->actions;
    - click 'create action' button;
    - give it an arbitrary name;
    - select 'triggers' as the source;
    - add conditions as desired. This is guess-work. I've tried several arrangements, with the simplest being "trigger value = problem";
    - add operation(s) to the action. I've selected the simplest possible: 'send message' to 'single user', selected the user, and sent to all media available for that user (which consist solely of email addresses).

    I then cause a 'problem', which I can verify is recognized by going to the monitoring dashboard, but I don't receive an email notification.

    I've verified that the appliance is running postfix, and that it (the o.s.) can successfully send an email to the same email address used in the action's 'operation'.

    I've ran tcpdump on the appliance, sniffing for tcp port 25, while causing a 'problem', but no packets are sent.

    What am I missing?

    Thanks,

    Jon
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    Does the user has at least RO permission for that host?

    You can check the event created by that problem and check what actions have been taken, and their status (success/fail and why).

    Comment

    • daveannal
      Junior Member
      • Sep 2010
      • 5

      #3
      Did you set up the actual trigger that the action is going to react to? Go to Configuration->Hosts and then click on the Triggers link for your host. Sorry if I'm stating something you already did, but you didn't mention it, so I wanted to make sure you took that step, too.

      also, confirm your email settings under Administration -> Media Types are correct. You should be able to confirm the configuration against the headers of emails you have sent successfully from the OS.

      Hope this helps!

      Comment

      • EnigmA-X
        Senior Member
        Zabbix Certified Specialist
        • Oct 2010
        • 116

        #4
        Originally posted by jdetert
        What am I missing?
        Maybe an open door....but...

        Did you put in the proper mail-server settings in: Administration --> Media types --> E-mail ?

        Keep us posted!

        Comment

        • jdetert
          Junior Member
          • Nov 2010
          • 5

          #5
          don't know if the user had RO permission

          Originally posted by xs-
          Does the user has at least RO permission for that host?

          You can check the event created by that problem and check what actions have been taken, and their status (success/fail and why).
          I found another thread in the forums that seemed to be the same problem. That thread's solution was to delete the user's profile within zabbix, and then recreate it.

          I didn't even know about users having/needing permission to read/write objects within zabbix.

          I deleted my zabbix user, recreated it, and only then noticed that zabbix users have 'permissions' on monitored objects. After I created the user, I noticed it didn't have any permissions on any of the monitored objects.

          I added permission and then zabbix finally sent email.

          Comment

          • jdetert
            Junior Member
            • Nov 2010
            • 5

            #6
            mail settings weren't quite right

            Originally posted by EnigmA-X
            Maybe an open door....but...

            Did you put in the proper mail-server settings in: Administration --> Media types --> E-mail ?

            Keep us posted!
            the initial problem was that zabbix didn't even try to send email. I think it was a permission issue.

            However, after granting permission to read the monitored objects, I could see that zabbix was trying to send email, but it was failing. I saw this by going to Administration->Audit and then changing the selection from 'logs' to 'actions'.

            Part of the problem at that point was fixed by following your suggestion, and noting that the sender address was incomplete.

            Thanks

            Comment

            • jdetert
              Junior Member
              • Nov 2010
              • 5

              #7
              yes, there were triggers

              Originally posted by daveannal
              Did you set up the actual trigger that the action is going to react to? Go to Configuration->Hosts and then click on the Triggers link for your host. Sorry if I'm stating something you already did, but you didn't mention it, so I wanted to make sure you took that step, too.

              also, confirm your email settings under Administration -> Media Types are correct. You should be able to confirm the configuration against the headers of emails you have sent successfully from the OS.

              Hope this helps!
              yes, there were triggers. I didn't set them up, though. I am using the appliance, and it already had templates, which apparently had triggers.

              Your 2nd suggestion did play a part in fixing the problem. See my other comments for the full story.

              Thanks

              Comment

              • jdetert
                Junior Member
                • Nov 2010
                • 5

                #8
                Originally posted by jdetert
                I found another thread in the forums that seemed to be the same problem. That thread's solution was to delete the user's profile within zabbix, and then recreate it.

                --- snip ---
                here is the thread i referred to:

                Comment

                Working...