zabbix设置邮件告警(详细图解)


[root@localhost ~]# cat /etc/hosts
127.0.0.1 monit.com localhost.localdomain localhost

[root@localhost ~]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
Connect:monit.com RELAY


[root@localhost ~]# cat /etc/mail/local-host-names
monit.com

验证:
# telnet 127.0.0.1 25
查看进程
[root@localhost ~]# ps aux|grep sendmail

修改完成后,重启sendmail服务,通过telnet命令,测试一下看看是否已生效
[root@localhost ~]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to monit.com (127.0.0.1).
Escape character is '^]'.
220 monit.com ESMTP Sendmail 8.13.8/8.13.8; Tue, 12 Jun 2012 18:28:27 +0800
从以上结果可以发现,localhost.localdomain 已经变成了 monit.com这个域名,设置完成!

接下来就可以在zabbix 的管理页面上进行Email 报警设置了。
描述
Email

类型
Email

SMTP server
monit.com

SMTP helo
monit.com

SMTP email

root@monit.com

zabbix设置邮件告警(详细图解) - herb - herb
设置完成后点击保存按钮
然后高级配置——用户设置用户的报警介质,添加Email

zabbix设置邮件告警(详细图解) - herb - herb

新建一个action,报警方式选择Email,如图,保存测试即可!
zabbix设置邮件告警(详细图解) - herb - herb
 
 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值