如果下列设置完之后邮件无法发送,请安装如下
yum -y install mailx sendmail
一、首先设置报警媒介
图片.png
具体设置
图片.png
我绑的是qq邮箱,密码是生成的授权码
图片.png 图片.png
此处默认即可
二、配置动作
图片.png
图片.png
图片.png
Problem: {TRIGGER.NAME}
Problem started at {EVENT.TIME} on {EVENT.DATE}
Problem name: {TRIGGER.NAME}
Host: {HOST.NAME}
Host IP: {HOST.IP}
Severity: {TRIGGER.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
Resolved: {TRIGGER.NAME}
Problem has been resolved at {EVENT.RECOVERY.TIME} on {EVENT.RECOVERY.DATE}
Problem name: {TRIGGER.NAME}
Host: {HOST.NAME}
Host IP: {HOST.IP}
Severity: {TRIGGER.SEVERITY}
Original problem ID: {EVENT.ID}
{TRIGGER.URL}
Acknowledged: {TRIGGER.NAME}
{USER.FULLNAME} acknowledged problem at {ACK.DATE} {ACK.TIME} with the following message:
{ACK.MESSAGE}
Current problem status is {EVENT.STATUS}
三、用户和组中的配置�
图片.png
类型填写email,剩下的基本默认
邮件报警基本完成
测试只需要设置你的触发器就姓
例如我把我ac控制的内存阀值调到30(正常是50几),30肯定能告警
图片.png
网友评论