Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0
-
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
Attachments
Issue Links
- is related to
-
AMBARI-20739 Specify the script directly in alert target for script-based alert dispatchers
- Resolved
- links to