watch告警參考
}, "input"
:為當天的日誌格式:例如:2019.01.29
""],
"types":[
], "body":}
}, }],
# 過濾條件
"must_not":[
}]}}
}}}},
"condition":}
}, "actions":}
}, "to":[
# 一般只需要修改收件人資訊。其他不需要修改。
],# 這裡引用 watch id
"subject": "
} 報警",
"body":
}\n 日誌路徑
}\n 例項id:
}\n 報錯日誌:\n
}}\n
}" }}}
}}
參考文件:
模版語法:
引用變數參考:
watcher配置參考:
Zabbix 配置郵件告警
pre 1.對監控項增加trigger 2.server端安裝郵件服務 yum install sendmail 安裝 service sendmail start 啟動 chkconfig sendmail on 設定開機啟動 yum install postfix service postfix...
Prometheus告警規則配置
建立告警規則配置檔案first rules.yml,建議放在與prometheus.yml同級目錄 修改配置檔案prometheus.yml,將告警規則配置檔案新增到prometheus.yml。注意路徑。global scrape interval 15s 這個是每次資料手機的頻率 evaluat...
OVIRT如何配置郵件告警
a 使用ovirt engine notifier服務來根據指定是事件發出郵件通知。1 配置服務 root engine vi usr share ovirt engine services ovirt engine notifier ovirt engine notifier.conf mail ...