You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2014/09/23 08:44:33 UTC

[jira] [Created] (AMBARI-7443) Alerts: Implement Email Dispatcher

Jonathan Hurley created AMBARI-7443:
---------------------------------------

             Summary: Alerts: Implement Email Dispatcher
                 Key: AMBARI-7443
                 URL: https://issues.apache.org/jira/browse/AMBARI-7443
             Project: Ambari
          Issue Type: Task
          Components: alerts, ambari-server
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
             Fix For: 2.0.0


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.

{code}
{
  "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"
    }
  }
}
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)