Smokeping工具,安裝的方式可參考官網,目前實作用Slack發出告警訊息
依照個人安裝的目錄,調整相關的設定檔路徑即可
vi /usr/local/smokeping/etc/slack_notify.sh
#!/bin/bash
function send_alert {
# Send a SmokePing status alert to the slack channel
alertname="$1"
target="$2"
losspattern="$3"
rtt="$4"
hostname="$5"