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

Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line

    Details

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

      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 execute a command manually like following:

      POST api/v1/alert_targets
          
          {
            "AlertTarget": {
              "name": "syslogger",
              "description": "Syslog Target",
              "notification_type": "ALERT_SCRIPT",
              "global": true
            }
          }
      

      or

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

      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.

        Attachments

        1. alert_script_target_3.png
          30 kB
          Yao Lei
        2. alert_script_target_1.png
          39 kB
          Yao Lei
        3. alert_script_target_2.png
          22 kB
          Yao Lei
        4. AMBARI-18423_1.patch
          14 kB
          Yao Lei
        5. AMBARI-18423_2.patch
          14 kB
          Yao Lei
        6. AMBARI-18423_3.patch
          14 kB
          Yao Lei

          Issue Links

            Activity

              People

              • Assignee:
                yaolei Yao Lei
                Reporter:
                yaolei Yao Lei
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: