**Alerts **
to= xx@163.com
from xx@163.com
smokeping 环境已经搭建好了,外置邮箱auth::SASL也配好了。
目前预警邮件发不出来
求能否正常发报警邮件的验证步骤
----邮件问题已解决,采用了外置脚本alert.sh 配置了权限。
--新问题:重复预警怎么处理,例 A线路有问题,怎么停止监测,等待网络恢复后再重新监测
**Alerts **
to= xx@163.com
from xx@163.com
smokeping 环境已经搭建好了,外置邮箱auth::SASL也配好了。
目前预警邮件发不出来
求能否正常发报警邮件的验证步骤
----邮件问题已解决,采用了外置脚本alert.sh 配置了权限。
--新问题:重复预警怎么处理,例 A线路有问题,怎么停止监测,等待网络恢复后再重新监测
wget http://xrl.us/cpanm -O /usr/bin/cpanm
1.安装Authen::SASL模块 cpanm --mirror http://mirrors.163.com/cpan --mirror-only --force Authen::SASL
2.修改smokeping/lib/Smokeping.pm :
use Authen::SASL;
在sendmail中添加$smtp->auth(split(/\s*,\s*/, $cfg->{General}{mailusr}),split(/\s*,\s*/, $cfg->{General}{mailpwd}));
在_vars中添加mailusr mailpwd
3.配置文件修改
mailhost = smtp.163.com
mailusr = user@163.com
mailpwd = password
4.alert
to = 公司邮箱
from = user@163.com
5.添加几种新的告警
6.策略应用
你试试看,看能不能解决你的问题