zabbix添加邮件告警
环境
centos7
zabbix3.4
sendmail
步骤
配置zabbix服务端外部邮箱
编辑/etc/mail.rc文件vim /etc/mail.rc
set from=xxx@163.com smtp=smtp.163.com
set smtp-auth-user=xxx@163.com smtp-auth-password=123456
set smtp-auth=login
保存退出
输入
echo "zabbix test mail" |mail -s "zabbix" yyy@163.com