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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • alerts, ambari-web
    • 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. AMBARI-18423_3.patch
          14 kB
          Lei Yao
        2. AMBARI-18423_2.patch
          14 kB
          Lei Yao
        3. AMBARI-18423_1.patch
          14 kB
          Lei Yao
        4. alert_script_target_2.png
          22 kB
          Lei Yao
        5. alert_script_target_1.png
          39 kB
          Lei Yao
        6. alert_script_target_3.png
          30 kB
          Lei Yao

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: