Ambari 自定义告警通知 创建一个自定义告警通知项: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl -i -u admin:admin -H 'X-Requested-By: ambari' -X POST "http://ambari-server:8080/api/v1/alert_targets" -d ' { "AlertTarget": { "name": "test_dispatcher", "description": "Custom Notification Dispatcher", "notification_type": "ALERT_SCRIPT", "global": true, "alert_states": ["CRITICAL","WARNING","UNKNOWN","OK"], "properties": { "ambari.dispatch-property.script": "notification.dispatch.alert.script" } } } 编