Ad Widget

Collapse

Zabbix sending emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandhya
    Junior Member
    • Mar 2012
    • 2

    #1

    Zabbix sending emails

    Hi friends,

    I have configured zabbix to send email notifications when an event with a 'problem' status occurs. The corresponding item monitors a log every 30 seconds to take the latest data. I have a specific problem here - when more than one 'problem' event happens within 30 seconds, then all the email notifications I receive contain the last item value.

    For example,
    The item collects 4 statements from the log 'critical info 1' , 'critical info 2', 'critical info 3', 'critical info 4'. The zabbix is configured to alert whenever the item collects a statement from the log with the word 'critical'. Hence, I receive 4 alerts one for each statement. And each event executes an action which is sending email notification. But the content of each mail has the last item value in it which is 'critical info 4'. The item value of the other three events does not come though an action have been taken correspondingly.

    Have any one come across this problem? Kindly reply.

    Thank you.
  • HullZabbix
    Senior Member
    • Feb 2011
    • 104

    #2
    I think you need to edit your trigger.

    Event generation needs to be "Normal + Multiple PROBLEM events"

    Or if that doesn't work you could try creating a seperate action for each trigger (if you haven't already!)
    Last edited by HullZabbix; 22-03-2012, 18:31.

    Comment

    • sandhya
      Junior Member
      • Mar 2012
      • 2

      #3
      Thanks for the reply.

      I have configured triggers to have event generation for normal+multiple problems.
      About actions, I have created a single action with event source as trigger.
      Is it possible to create a seperate action for each trigger in zabbix?

      kindly reply. Thanks in advance!!

      Comment

      • Davidus
        Senior Member
        • Dec 2010
        • 281

        #4
        Originally posted by sandhya
        Is it possible to create a seperate action for each trigger in zabbix?
        Yes it is. In order to do so, you have to do following:
        1)Create trigger with unique name
        2)Create new action
        Your action condition should look similar to:
        Trigger value = "PROBLEM"
        Trigger description like "your_unique_trigger_name"
        Host = "name_of_your_host"

        hope it helps!

        Comment

        • HullZabbix
          Senior Member
          • Feb 2011
          • 104

          #5
          As above, it is most certainly possible.

          I have seperate actions for each event log (Application, System, DNS), so I receive any error in either log via email.

          You'll want your trigger like so:

          {TemplateABCDServers:eventlog[System].logseverity(0)}=4 & {TemplateADCDServers:eventlog[System].nodata(10)}#1

          Then your action will be:

          (A) AND (B)
          (A) Trigger value = "PROBLEM"
          (B) Trigger = "TemplateABCDServers:Eventlog: All System Errors"


          I also have other triggers and actions for specific events in specific event logs which get sent via sms to a mobile phone.

          Comment

          • karthikls
            Junior Member
            • Jun 2012
            • 8

            #6
            No Actions Found.

            Hi All,

            Please help me in the following issue.

            Am very new to Zabbix and the version is 1.8.12 and am trying to configure test email alert by creating a touch txt file.When ever i delete the file a alert shud be generated and zabbix shud send a mail.But am unable to receive any alerts.Please help me on how to configure.

            Regards,
            Karthik.L.S

            Comment

            • anpat89
              Junior Member
              • Jun 2012
              • 17

              #7
              Go into the Administration/Media Types (sure you know) and click Email.

              Change your settings to these.
              SMTP server: localhost
              SMTP helo: FQDN (Fully Qualified Domain Name) i.e. hostname.domain (hostname.google.com).
              SMTP email: [email protected]

              Hope that this helps you out.
              Kind Regards,
              Andrew.

              Comment

              • maplesyrupghost
                Member
                • Jul 2012
                • 37

                #8
                Originally posted by anpat89
                Go into the Administration/Media Types (sure you know) and click Email.

                Change your settings to these.
                SMTP server: localhost
                SMTP helo: FQDN (Fully Qualified Domain Name) i.e. hostname.domain (hostname.google.com).
                SMTP email: [email protected]

                Hope that this helps you out.
                Kind Regards,
                Andrew.
                I'm trying to figure this out.

                Is there a way I can send emails from Zabbix.. so is the SMTP server Zabbix itself, so what would I put as the domain name if Zabbix was it's own mail server?

                Comment

                • anjiytwok
                  Member
                  • Dec 2012
                  • 44

                  #9
                  Hello,

                  Could you please help me,

                  I have given only the SMTP servername, SMTP email from, userid and password.

                  in this case where i need to configure the userId and password?

                  I did not see any provision for asking the userId and password while configuring the email.

                  please help me?

                  Comment

                  • novaldi
                    Junior Member
                    • Mar 2013
                    • 1

                    #10
                    Email notifications zabbix

                    I'm using zabbix 2.0.4 and I want zabbix give notice to warning or trigger, how to do it? What setting do I need?

                    Thanks

                    Comment

                    Working...