一、第三方邮箱报警配置
报警
触发器的通知信息显示在web管理界面, 运维工程师仍然没办法24小时盯着它。所以我们希望它能自动地 通知工程师们,这就是报警。
zabbix的报警媒介支持email,jabber,sms(短信),微信,电话语音等。
报警过程原理
配置报警信息可以通过邮箱来实现
前期准备环境
1、确保server和agent1端的防火墙和selinux处于关闭状态
2、设置server端的主机名为server.example.com agent1端的主机名为agent1.example.com
3、分别修改server和agent1端的/etc/hosts文件
[root@server ~]# hostnamectl set-hostname server.example.com
[root@server ~]# bash
[root@server ~]# hostname
server.example.com
[root@server ~]# vim /etc/hosts
[root@server ~]# tail -2 /etc/hosts
192.168.47.137 server.example.com server
192.168.47.136 agent.example.com agent
//客户端
[root@agent ~]# hostnamectl set-hostname agent1.example.com
[root@agent ~]# bash
[root@agent1 ~]# hostname
agent1.example.com
[root@agent1 ~]# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.local