Ad Widget

Collapse

Zabbix not sending emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coza2eire
    Junior Member
    • Aug 2009
    • 11

    #1

    Zabbix not sending emails

    Hi All.

    I hope that someone can help me out please...
    I have a new install of Zabbix and all is working as expected. I am having problems with the smtp MTA component of zabbix though.

    Zabbix is not able to send any emails at all. I have configured the media type for email as below:

    Type: Email
    SMTP Server: 10.89.1.14
    SMTP HELO: 'mydomain.com'
    SMTP email: [email protected]

    when telneting to this mail server from Zabbix, i am able to send mail fine and it delivers fine.

    I then have created a media type for the "ADMIN" user as follows:

    TYPE: email
    send to: [email protected]
    When active: (always)
    Status: enabled

    Zabbix still does not send any email out on triggers.

    I have checked zabbix-server.log but it reports nothing at all. I have set the debug level to 4.

    At this stage I have given up all hope and think that a rebuild is imminent.... please help stop these terrible thoughts of having to rebuild....

    thanks in advance.
  • zab_monkey
    Member
    • Mar 2010
    • 37

    #2
    Hi,

    Its something to check, but you may have already.

    In order for Zabbix to send emails, the user you are sending the mails VIA needs to have read access to the items you are notifying them of.

    As such, login as the Zabbix Admin as you have defined -> go to Administration Tab -> Users.

    Check the rights of the Group you are sending TO, by clicking on the group and making sure the host/s you are monitoring and expecting emails from are in at least the 'Read Only' section (if not Read/Write).

    If they do not have read access, then add the host/s and let us know how you go.

    Regards,

    JC

    Comment

    • simonuk1
      Member
      • Mar 2009
      • 66

      #3
      you may also want to check your users has the correct settings in its media to recieve mails 24/7 and for all types of alerts critical warning etc

      you can also check in the audit log to see if zabbix has attempted to send the user and email

      hope that helps, zabbix has about 8 ways to skin a cat which makes it very flexible, but can catch you out. as you can have a user that only recieve mails for a certain host if the they are critical triggers on a wednesday etc

      cheers si

      Comment

      • coza2eire
        Junior Member
        • Aug 2009
        • 11

        #4
        Originally posted by zab_monkey
        Hi,

        Its something to check, but you may have already.

        In order for Zabbix to send emails, the user you are sending the mails VIA needs to have read access to the items you are notifying them of.

        As such, login as the Zabbix Admin as you have defined -> go to Administration Tab -> Users.

        Check the rights of the Group you are sending TO, by clicking on the group and making sure the host/s you are monitoring and expecting emails from are in at least the 'Read Only' section (if not Read/Write).

        If they do not have read access, then add the host/s and let us know how you go.

        Regards,

        JC
        Hi Zab_Monkey.

        Thanks for your reply.
        Sorry, I had failed to mention that.... but yes, I had checked this and user Admin, as expected has full read/write access to the Hosts. Now i did notice that I had received 1 email from Zabbix for when the Database went down (I forced it down when trying to use another user account in the zabbix-server.conf file to the MYSQL but nothing else at all. As mentioned in prior post... the email path is working when I telnet and mail manually.... Would just love to know what Zabbix is doing in the background.

        very odd indeed.

        Comment

        • coza2eire
          Junior Member
          • Aug 2009
          • 11

          #5
          Originally posted by simonuk1
          you may also want to check your users has the correct settings in its media to recieve mails 24/7 and for all types of alerts critical warning etc

          you can also check in the audit log to see if zabbix has attempted to send the user and email

          hope that helps, zabbix has about 8 ways to skin a cat which makes it very flexible, but can catch you out. as you can have a user that only recieve mails for a certain host if the they are critical triggers on a wednesday etc

          cheers si
          Hi Simonuk1,

          Appreciate your assistance on this.
          The user is set to receive mail 24/7 alright according to config.
          The admin user is also set to receive all trigers (warnings etc)
          I checked the Zabbix-Server.log file and found nothing pointing to mail issue.
          Is there another log that you are referencing in your post that I should check?

          Thanks,

          Comment

          • coza2eire
            Junior Member
            • Aug 2009
            • 11

            #6
            Resolved

            Hi Zab_Monkey / Simonuk1.

            I have opted to rebuild the server as no matter what way i look at it, it just doesn't want to resolve.
            I suspect it has something to do with the postfix that is already on the server but anyway.
            I have exported hosts and templates already created and doing a rebuild now so thanks for your input anyway.

            Luis.

            Comment

            • manglesh.vyas
              Junior Member
              • Oct 2010
              • 3

              #7
              Mail Configuraion

              Hi

              would recommend after checking user rights go to Configuration -- > and go to Action Tab, check email setting are Enable and properly configured.

              Comment

              • Rotzooi
                Junior Member
                • Apr 2007
                • 2

                #8
                Solved for me

                Originally posted by manglesh.vyas
                Hi

                would recommend after checking user rights go to Configuration -- > and go to Action Tab, check email setting are Enable and properly configured.
                This tip solved it for me.

                Comment

                • wsanders
                  Junior Member
                  • Feb 2014
                  • 7

                  #9
                  For User Groups Too

                  If you create a new user group for the user (Zabbiz doesn't seem happy about users that are not in a user group) the user group needs to have permissions set the same as the user.

                  Comment

                  Working...