Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-7443

Alerts: Implement Email Dispatcher

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: alerts, ambari-server
    • Labels:
      None

      Description

      Create an email dispatcher that can be used by the service that scans alert_notice for PENDING entries to relay notifications.

      Alert targets of type EMAIL should be defined with a flat set of properties that governs the dispatching.

      {
        "AlertTarget": {
          "name": "Email Test",
          "description": "The Admins",
          "notification_type": "EMAIL",
          "properties":{
            "ambari.dispatch.credential.username":"ambari",
            "ambari.dispatch.credential.password":"password",
            "ambari.dispatch.recipients":["ambari@repo.ambari.apache.org"],
            "mail.smtp.host":"repo.ambari.apache.org",
            "mail.smtp.port":"25",
            "mail.smtp.auth":"true",
            "mail.smtp.tarttls.enable":"false",
            "mail.smtp.from":"ambari@repo.ambari.apache.org"
          }
        }
      }
      

      Several properties will be Ambari-specific and will be used for authentication and recipients:

      • They will begin with ambari.dispatch
      • ambari.dispatch.recipients will be a JSON array

      The rest of the properties will be used by the concrete dispatcher. In this case, they will be JavaMail properties directly handed to the Properties instance used to initialize the JavaMail Session.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jonathan.hurley Jonathan Hurley
                Reporter:
                jonathan.hurley Jonathan Hurley
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: