文章标题
来源:互联网 发布:史上最搞笑的淘宝评价 编辑:程序博客网 时间:2024/06/06 21:39
zabbix+postfix邮件告警配置
一、
1.本机若安装sendmail,则必须关闭并卸载。
service sendmail stop
chkconfig sendmail off
rpm -e sendmail –nodeps
2.安装postfix
yum install postfix -y
更改postfix配置文件中的参数
postconf -e myhostname=mail.zabbix.example.cn
postconf -e myorigin=zabbix.example.cn
postconf -e mydomain=zabbix.example.cn
postconf -e mydestination=localhost
postconf -e mynetworks=127.0.0.0/8
配置完成会添加参数到/etc/postfix/main.cf下末行
vi /etc/hosts
添加一行:
127.0.0.1 mail.zabbix.example.cn zabbix.example.cn
重启postfix服务
service postfix restart
yum install mailx
测试发送一封邮件到公网邮箱
echo “zabbix test mail” |mail -s “zabbix” xxx@163.com
若远程邮箱收到,则配置成功
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 错误解决方法Server Tomcat v8.0 Server at localhost failed to start.
- STL学习——Priority_queue篇
- 《THING IN JAVA》 8章多态-读书笔记
- P1012 拼数
- android中shape的用法
- 文章标题
- 2016年总结
- Android学习笔记(十二)--自己来实现CircleImageView
- 获取Android手机当前界面Activity包名,类名
- IntentService和Service的区别?
- Java面试题之继承与代码块
- 抽象类
- 对json 的总结和理解
- TCP三次握手和四次挥手