Ad Widget

Collapse

ZAbbix server 3.0 fails to send mails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lamoul
    Junior Member
    • Jan 2017
    • 12

    #1

    ZAbbix server 3.0 fails to send mails

    I am using Zabbix 3.0 on Redhat 7.

    i'd like to configure SMTP to send all triggers to our group email. For now i just tested it with my own account.

    Simple test like ping not responce, file system >90% usage. so i registered server to Zabbix, assigned template to it. Bring down lan card, and fill up file system.

    But i still don't receive any emails.

    i follow instruction in Zabbix documentation or manual:

    Name: email
    Type: email
    SMTP server: our SMTP gateway
    SMTP server port: 25
    SMTP helo: agr.gc.ca
    SMTP email: my-email.agr.gc.ca
    Connection security: None
    SSL veriry peer: blank
    SSL verify host: blank
    Aithentication: none
    username: none ----->>> What user name???
    password:none ---->>> What password???
    Enabled: checked
    Update (click)

    What i did wrong? please help. i am stuck.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by lamoul
    I am using Zabbix 3.0 on Redhat 7.

    i'd like to configure SMTP to send all triggers to our group email. For now i just tested it with my own account.

    Simple test like ping not responce, file system >90% usage. so i registered server to Zabbix, assigned template to it. Bring down lan card, and fill up file system.

    But i still don't receive any emails.

    i follow instruction in Zabbix documentation or manual:

    Name: email
    Type: email
    SMTP server: our SMTP gateway
    SMTP server port: 25
    SMTP helo: agr.gc.ca
    SMTP email: my-email.agr.gc.ca
    Connection security: None
    SSL veriry peer: blank
    SSL verify host: blank
    Aithentication: none
    username: none ----->>> What user name???
    password:none ---->>> What password???
    Enabled: checked
    Update (click)

    What i did wrong? please help. i am stuck.
    1. did you set an action to send the mail ? post the action here
    2. you have a log to see what happend to action like mail- go to Reports-> Action log

    Comment

    • lamoul
      Junior Member
      • Jan 2017
      • 12

      #3
      THanks for your reply! really appreciated it!.

      Yes i set up an action to send to my email for now. Also in report, there is nothing there.

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        Originally posted by lamoul
        THanks for your reply! really appreciated it!.

        Yes i set up an action to send to my email for now. Also in report, there is nothing there.
        post the action here - if you see nothing that means that zaabbix didnt even try to send..

        screenshot if you can

        Comment

        • lamoul
          Junior Member
          • Jan 2017
          • 12

          #5
          See pictures from the URL below

          Billions of happy photos, millions of passionate customers. Gorgeous online photo albums. Protect your priceless memories. Buy beautiful prints & gifts.



          Thank you!

          Comment

          • batchenr
            Senior Member
            • Sep 2016
            • 440

            #6
            Originally posted by lamoul
            first of all under action-operation : lower the "Default operation step duration" to 60 so you wont get email after 3600 sec

            and you didnt attach the Condition tab - the most important one

            Comment

            • lamoul
              Junior Member
              • Jan 2017
              • 12

              #7
              Conditions tab screenshot

              what am i missing? What should i add?

              Billions of happy photos, millions of passionate customers. Gorgeous online photo albums. Protect your priceless memories. Buy beautiful prints & gifts.


              Thank you!

              Comment

              • batchenr
                Senior Member
                • Sep 2016
                • 440

                #8
                Originally posted by lamoul
                what am i missing? What should i add?

                Billions of happy photos, millions of passionate customers. Gorgeous online photo albums. Protect your priceless memories. Buy beautiful prints & gifts.


                Thank you!
                Configuration -> Action -> middle tab "Condition" between the action and operation tab

                Comment

                • lamoul
                  Junior Member
                  • Jan 2017
                  • 12

                  #9
                  Conditions examples

                  Would it be possible to provide some examples of Conditions please?

                  Thank you!

                  Comment

                  • batchenr
                    Senior Member
                    • Sep 2016
                    • 440

                    #10
                    Originally posted by lamoul
                    Would it be possible to provide some examples of Conditions please?

                    Thank you!
                    look at the attachment
                    the condition there means if a trigger value is PROBLEM and host is legacy






                    Comment

                    • lamoul
                      Junior Member
                      • Jan 2017
                      • 12

                      #11
                      Zabbix not sending email notification

                      After following your recommendation, still same issue.
                      I configured

                      Actions, Conditions and operations as you mentioned. I even restart
                      zabbix-server to see but no email sent from zabbix to my inbox.

                      I am stuck! need help please.

                      Comment

                      • batchenr
                        Senior Member
                        • Sep 2016
                        • 440

                        #12
                        run smtp check from zabbix server cli:

                        >telnet SMTP server 25

                        >helo agr.gc.ca

                        >MAIL FROM: my-email.agr.gc.ca

                        >RCPT TO: any external email you choose

                        >DATA

                        >Subject: test

                        >This is a test message

                        >. (dont forget . at the end here!)

                        >QUIT

                        post the response here if you didnt get any mail to the mail you specify in "RCPT TO"

                        Comment

                        • lamoul
                          Junior Member
                          • Jan 2017
                          • 12

                          #13
                          smtp test for zabbix

                          telnet smtp 25 worked

                          Connected to mailhost.agr.gc.ca.
                          Escape character is '^]'.
                          220 our-gateway.agr.gc.ca ESMTP

                          The rest, command not regnonized:

                          >helo agr.gc.ca

                          >MAIL FROM: my-email.agr.gc.ca

                          >RCPT TO: any external email you choose

                          >DATA

                          >Subject: test

                          >This is a test message

                          >. (dont forget . at the end here!)

                          >QUIT

                          Comment

                          • lamoul
                            Junior Member
                            • Jan 2017
                            • 12

                            #14
                            ok. i figured it out about your instruction:

                            See output:
                            [root@zabbix ~]# telnet our-smtp.agr.gc.ca 25 (not zabbix server)
                            Trying 192.168.122.107...
                            Connected to our-smtp.agr.gc.ca.
                            Escape character is '^]'.
                            220 our-gateway-zsmtp7.agr.gc.ca ESMTP
                            helo agr.gc.ca
                            250 our-gateway-zsmtp7.agr.gc.ca
                            mail from: [email protected]
                            250 2.1.0 Ok
                            rcpt to: [email protected]
                            250 2.1.5 Ok
                            data
                            354 End data with <CR><LF>.<CR><LF>
                            test

                            this is a test message

                            .
                            250 2.0.0 Ok: queued as F6558A7F59D09DBD
                            quit
                            221 2.0.0 Bye
                            Connection closed by foreign host.

                            Comment

                            • lamoul
                              Junior Member
                              • Jan 2017
                              • 12

                              #15
                              still don't receive any email from zabbix server

                              Comment

                              Working...