Ambari 自定义告警通知

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

Centos Init

Docker Step1: Update 1 sudo yum check-update Step2: Install the Dependencies 1 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 Step3: Add the Docker Repository to CentOS 1 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Step4: Install Docker 1 sudo yum install docker Step5: Install Docker-compose 1 2 3 sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose

Ambari 的安装

[TOC] 因为各种原因,如果直接用Ambari的官方包进行安装时,速度会极慢,而官方本身也是支持离线安装的。所以,本文使用离线安装的方式。 一、下载离