Ad Widget

Collapse

How does Zabbix Send E-Mail?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TurboAAA
    Junior Member
    • May 2015
    • 5

    #1

    How does Zabbix Send E-Mail?

    I am working on getting zabbix to send e-mail alerts, but for some reason I can not figure out how it works. After playing around with the media settings and googling I figured it would be best to ask someone.

    Does Zabbix use it's own internal server, or do I need to configure an external one? We have mail servers that can be used, but it would be nice if it had it's own internal system.
  • rahulchandyok
    Junior Member
    • Oct 2015
    • 8

    #2
    Same question

    Hello,

    I have also dig alot but unable to send alerts on my email. Please any zabbix specialist help !.

    Thanks!

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Please check your media setting.

      Administration -> Media types and click Email.

      Does your mail server has been set at 'SMTP server'?

      Comment

      • rahulchandyok
        Junior Member
        • Oct 2015
        • 8

        #4
        Konnichiwa Atsuhi San,

        I have attached the screenshot.

        Before I have put my own mail server details as well but not working.

        If you want can I send you zabbix credentials, so you can check all the stuff from your side as well?

        Thanks in advance.

        Regards,
        Rahul
        Attached Files

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          You do not have something output to the mail server log?
          Rather than localhost in some environments, it might need to be specified as localhost.localdomain.

          Comment

          • rahulchandyok
            Junior Member
            • Oct 2015
            • 8

            #6
            Yes, I don't have any output in my mail logs. I have changed localhost to localhost.localdomain but no luck.

            One more thing I have changed my passwd file but In my monitoring it's not showing some warning in last 20 issues.

            Any idea?

            In my understanding so far in zabbix we added our server, we can setup triggers we will get notify for particular service if something went wrong.

            media type: Setup for alert, from whom we will get notify.

            User section: We can setup email id to send zabbix alert.

            Action: We can setup condition and operation

            Please rectify me if I 'm wrong?

            Can you please take a look once?

            Thanks!

            Comment

            • Atsushi
              Senior Member
              • Aug 2013
              • 2028

              #7
              Please check user permission.

              Do specified user that set 'send to' have access permissions to failur host?

              Administration -> Users and click user name.
              Next, select Permissions tab.

              That host has been listed on Read-write or Read only window?

              Comment

              • rahulchandyok
                Junior Member
                • Oct 2015
                • 8

                #8
                Later I have get changed passwd file info in zabbix.

                Attached screenshots of all.
                Attached Files

                Comment

                • coreychristian
                  Senior Member
                  Zabbix Certified Specialist
                  • Jun 2012
                  • 159

                  #9
                  I know it's pretty straight forward, but have you tried relaying off of local host from the command line

                  Zabbix does require that the relay be setup, so if your just pointing it to your localhost without it being configured to relay I don't think it will work.

                  Comment

                  • rahulchandyok
                    Junior Member
                    • Oct 2015
                    • 8

                    #10
                    Now I have received the email on my GMAIL. but I don't know how it's worked hahahaha

                    I will work more and let you know if 'm stuck again.

                    PROBLEM: /etc/passwd has been changed on Zabbix server
                    Inbox
                    x

                    [email protected]omain
                    10:59 PM (10 hours ago)

                    to me
                    Trigger: /etc/passwd has been changed on Zabbix server
                    Trigger status: PROBLEM
                    Trigger severity: Warning
                    Trigger URL:

                    Item values:

                    1. Checksum of /etc/passwd (Zabbix server:vfs.file.cksum[/etc/passwd]): 2818602286
                    2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
                    3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*

                    Original event ID: 421

                    BTW thanks for your all help, I 'm really glad you give your precious time in you busy schedule.

                    Comment

                    • coreychristian
                      Senior Member
                      Zabbix Certified Specialist
                      • Jun 2012
                      • 159

                      #11
                      If you can receive the e-mail in your gmail, the mails themselves are likely being sent.

                      I would look towards the filtering/junk mail on your destination server, it's likely that it's being blocked somewhere. It's pretty common for people to block mail that would look like the zabbix e-mails as they don't have a valid domain/reply/lookup/etc..

                      Comment

                      • TurboAAA
                        Junior Member
                        • May 2015
                        • 5

                        #12
                        Sorry it took me so long to come back to my own post, there were other emergencies to deal with.

                        My problem is that I do not understand how the email process works in Zabbix. I know to use Administration -> Media types -> Email but I have no understanding of what these fields need. I also do not know how Zabbix sends email without credentials to the SMTP server.

                        For example,
                        SMTP server : <or corporate email server>
                        SMTP helo : <corporate domain>
                        SMTP email : zabbix.localhost

                        What does Zabbix do with this information?

                        Comment

                        • coreychristian
                          Senior Member
                          Zabbix Certified Specialist
                          • Jun 2012
                          • 159

                          #13
                          Honestly I couldn't get into the specifics as I am not 100% familiar with them. Most SMTP Servers we use at my company don't require authentication to send outbound e-mail.

                          I think you are fine doing it the way you are, you just need to talk to your messaging admins and find out what is blocking the e-mail you are sending, or if they have any requirements you must meet sending mail in from your server.

                          It may be just as simple as changing the SMTP E-mail to '[email protected]'.

                          As I mentioned though the outbound appears to be working for you since it will go through to your g-mail, so there must be some filtering going on somewhere.

                          Comment

                          • TurboAAA
                            Junior Member
                            • May 2015
                            • 5

                            #14
                            Originally posted by coreychristian
                            ...
                            As I mentioned though the outbound appears to be working for you since it will go through to your g-mail, so there must be some filtering going on somewhere.
                            Actually I am the OP, you have been helping another user that joined my thread. Sadly reading over the previous posts didn't help my lack of understanding.

                            Let me try asking in a different way. I want zabbix to send an email to our helpdesk ticketing system. How can I tell zabbix to send an email to [email protected]?

                            Comment

                            • coreychristian
                              Senior Member
                              Zabbix Certified Specialist
                              • Jun 2012
                              • 159

                              #15
                              Originally posted by TurboAAA
                              Actually I am the OP, you have been helping another user that joined my thread. Sadly reading over the previous posts didn't help my lack of understanding.

                              Let me try asking in a different way. I want zabbix to send an email to our helpdesk ticketing system. How can I tell zabbix to send an email to [email protected]?
                              Sorry about that, terrible about reading the posters name sometimes.

                              Essentially most of it is in this thread.

                              So for zabbix you need a smtp relay server that doesn't require authentication. After that you need to setup the following (sorry guessing most of this you already completed)

                              1. Create the media type
                              2. Create a User that has read only access to the systems you want to send an e-mail for.
                              a. Also setup the media for that user with the helpdesk e-mail address.
                              3. Create an action (Event Source Triggers), that will send a notification to that user when the particular triggers fire.

                              Comment

                              Working...