You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/02/16 13:15:06 UTC

[jira] [Commented] (AMBARI-18423) Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line

    [ https://issues.apache.org/jira/browse/AMBARI-18423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367113#comment-16367113 ] 

Hudson commented on AMBARI-18423:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8744 (See [https://builds.apache.org/job/Ambari-trunk-Commit/8744/])
AMBARI-18423 - Support creating/editing alert dispatch targets for (aonishuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=cf43cde21d7f6169880df5e074fafcea6de6b9d4])
* (edit) ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js
* (edit) ambari-web/app/messages.js
* (edit) ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js
* (edit) ambari-web/app/templates/main/alerts/create_alert_notification.hbs


> Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-18423
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18423
>             Project: Ambari
>          Issue Type: Task
>          Components: alerts, ambari-web
>    Affects Versions: 3.0.0
>            Reporter: Yao Lei
>            Assignee: Yao Lei
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: AMBARI-18423_1.patch, AMBARI-18423_2.patch, AMBARI-18423_3.patch, alert_script_target_1.png, alert_script_target_2.png, alert_script_target_3.png
>
>
> Ambari now support creating/editing three kinds of alert dispatch targets  by web wizard,  including EMAIL,SNMP,Custom SNMP.
> If we want to create another kind of alert dispatch target  ALERT_SCRIPT  for  script-based alert dispatcher,we have to execute  a command  manually like  following:
> {code}
> POST api/v1/alert_targets
>     
>     {
>       "AlertTarget": {
>         "name": "syslogger",
>         "description": "Syslog Target",
>         "notification_type": "ALERT_SCRIPT",
>         "global": true
>       }
>     }
> {code}
> or 
> {code}
> POST api/v1/alert_targets
>     {
>       "AlertTarget": {
>         "name": "syslogger",
>         "description": "Syslog Target",
>         "notification_type": "ALERT_SCRIPT",
>         "global": false,
>         "groups":[1,3]
>         "alert_states":["WARNING","CRITICAL","UNKNOWN"],
>         "properties": {
>           "ambari.dispatch-property.script": "com.mycompany.dispatch.syslog.script"
>         }
>       }
>     }
> {code}
> More details, please see https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher+-+2.4.0
> We should do this by web wizard  rather than  command line, which will lead to more convenience
> We think it is really helpeful  for us when using script-based alert dispatcher.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)