Ad Widget

Collapse

Zabbix Mail notification trought running postfix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andrea.Matera
    Junior Member
    Zabbix Certified Specialist
    • Jun 2012
    • 10

    #1

    Zabbix Mail notification trought running postfix

    Hi everyone,
    I've installed Zabbix on Suse11.4, all woking well but notification and mail actions seems doesn't work.

    Postfix is configured to relay on my mail server (mail.mydomain.com) and if i use: "mail -s "Test From Mail" [email protected]" it works from root and zabbix bash well.

    I configure this media type on Zabbix:

    Description: Email
    Type: Email
    SMTP server: localhost
    SMTP helo: mydomain.com
    SMTP Email: [email protected]


    There is some triger in error but no mail received.

    No log error on /tmp/zabbix_server.log no log error on /var/log/mail.info.

    No Message on "tcpdump dst port 25" output.

    I have no idea, can anyone help me ?
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    If you go in Monitoring / Events and click on an event corresponding to a trigger that should have sent an email, you'll see event details.

    If Zabbix has tried to send an email, it should appear in 'Message actions' section.

    Hope this helps,
    JBo

    Comment

    • Andrea.Matera
      Junior Member
      Zabbix Certified Specialist
      • Jun 2012
      • 10

      #3
      On some trigger it say


      [email protected] - not sent

      On some other it say

      [email protected] Email In progress


      Is there a way to know Why it lock on "In progress" ?

      Comment

      • JBo
        Senior Member
        • Jan 2011
        • 310

        #4
        In case of an error, you should see some information in Error column.

        Also, are you sure that 'tcpdump dst port 25' is listening on lo interface ?
        When I try it; I get:
        Code:
        ~# tcpdump dst port 25
        tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
        listening on [B]eth0[/B], link-type EN10MB (Ethernet), capture size 96 bytes
        JBo

        Comment

        • Andrea.Matera
          Junior Member
          Zabbix Certified Specialist
          • Jun 2012
          • 10

          #5
          Problem finded!!!!

          All my users are imported from ldap and all my users have a media definend, but for some reason he says: "No media defined for user "Andrea Matera ([email protected])".


          Defining a media type for admin that is an internal user all works well, it can be a bug ?

          Comment

          • JBo
            Senior Member
            • Jan 2011
            • 310

            #6
            Originally posted by Andrea.Matera
            Defining a media type for admin that is an internal user all works well, it can be a bug ?
            AFAIK, Zabbix cannot import media types from LDAP. you need to define it for all your users within Zabbix.

            JBo

            Comment

            • Andrea.Matera
              Junior Member
              Zabbix Certified Specialist
              • Jun 2012
              • 10

              #7
              No No I've imported users from ldap and defined media type by my hand user by user, but it still doesn't use them.

              Comment

              Working...