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.策略应用

 


 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-11-13
  • 2021-09-10
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2021-12-21
  • 2021-12-31
  • 2021-08-26
  • 2021-06-28
  • 2021-01-28
相关资源
相似解决方案