zabbix email 报警设置
程序员文章站
2022-03-23 10:46:37
...
安装mailx
sudo yum install mailx
安装sendmail
sudo yum install sendmail
启动sendmail
sudo service sendmail start
开机启动
sudo chkconfig sendmail on
先备份sudo cp etc/mail/sendmail.cf etc/mail/sendmail_bak.cf
sudo vim etc/mail/sendmail.cf
# SMTP daemon options
#注释掉这行,重启服务即可
#O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.0
:wq
重启服务
sudo service sendmail restart
创建media Type
配置user,media
zabbix创建trriger
注意激活,勾选enable和Multiple PROBLEM events generation
Multiple PROBLEM events generation:同时产生事件
创建action
1)
2)
3)
查看事件状态
查看状态详情
从上图中可以看出email发送成功!
email信息:
sudo yum install mailx
安装sendmail
sudo yum install sendmail
启动sendmail
sudo service sendmail start
开机启动
sudo chkconfig sendmail on
先备份sudo cp etc/mail/sendmail.cf etc/mail/sendmail_bak.cf
sudo vim etc/mail/sendmail.cf
# SMTP daemon options
#注释掉这行,重启服务即可
#O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.0
:wq
重启服务
sudo service sendmail restart
创建media Type
配置user,media
zabbix创建trriger
注意激活,勾选enable和Multiple PROBLEM events generation
Multiple PROBLEM events generation:同时产生事件
创建action
1)
2)
3)
查看事件状态
查看状态详情
从上图中可以看出email发送成功!
email信息: