ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yao Lei (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-18423) Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line
Date Wed, 08 Mar 2017 04:38:38 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-18423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yao Lei updated AMBARI-18423:
-----------------------------
    Description: 
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 use command line to execute following codes:
//Please see https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher+-+2.4.0
{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": true,
        "properties": {
          "ambari.dispatch-property.script": "com.mycompany.dispatch.syslog.script"
        }
      }
    }
{code}

We suggest support creating/editing this kind of dispatch targets by web wizard instead of
command line, this will be more convenient to use Ambari.

  was:
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 for  script-based alert dispatcher,we
have to use command line to execute following codes:
//Please see https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher+-+2.4.0
{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": true,
        "properties": {
          "ambari.dispatch-property.script": "com.mycompany.dispatch.syslog.script"
        }
      }
    }
{code}

We suggest support creating/editing this kind of dispatch targets by web wizard instead of
command line, this will be more convenient to use Ambari.


> 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: Improvement
>          Components: alerts, ambari-web
>    Affects Versions: trunk
>            Reporter: Yao Lei
>             Fix For: trunk
>
>         Attachments: AMBARI-18423_1.patch, AMBARI-18423.patch, create_alert_notification.png,
disabled_alert_scirpt_notification.png, edit_alert_notification.png, enabled_alert_scirpt_notification.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 use command line to execute following codes:
> //Please see https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher+-+2.4.0
> {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": true,
>         "properties": {
>           "ambari.dispatch-property.script": "com.mycompany.dispatch.syslog.script"
>         }
>       }
>     }
> {code}
> We suggest support creating/editing this kind of dispatch targets by web wizard instead
of command line, this will be more convenient to use Ambari.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message