nagios 发邮件时发生错误:sendEmail[5387]: ERROR => No TLS support! SendEmail can't load
WW.SS 2016-10-02 08:21:14 1、在linux中配置的nagios,nagios 已经配置OK,正常运行,目前只是发送邮件出错
2、用sendEmail发送邮件,测试的命令:
sendEmail -f 发送者@qq.com -t 接受者@mail.com -s smtp.mxhichina.com:465 -o message-content-type=html -o tls=yes -o message-charset=utf8 -u "我是邮件主题" -xu 接受者-xp 密码 -m dddd
3、返回的错误是: sendEmail[5410]: ERROR => No TLS support! SendEmail can't load required libraries. (try installing Net::SSLeay and IO::Socket::SSL)
4、系统中已经安装了Net::SSLeay and IO::Socket::SSL
-----------------------------------------------
cpan[1]> install Net::SSLeay
Reading '/home/nagios/.cpan/Metadata'
Database was generated on Tue, 27 Sep 2016 20:53:31 GMT
Fetching with HTTP::Tiny:
http://mirrors.sohu.com/CPAN/authors/01mailrc.txt.gz
Reading '/home/nagios/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://mirrors.sohu.com/CPAN/modules/02packages.details.txt.gz
Reading '/home/nagios/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Sat, 01 Oct 2016 19:53:28 GMT
HTTP::Date not available
.............
New CPAN.pm version (v2.14) available.
[Currently running version is v2.00]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
...............................................................DONE
Fetching with HTTP::Tiny:
http://mirrors.sohu.com/CPAN/modules/03modlist.data.gz
Reading '/home/nagios/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/nagios/.cpan/Metadata
Net::SSLeay is up to date (1.78).
--------------------------------------------------------------------------------------------
5、IO::Socket::SSL也已经安装
---------------------------------------------------------------------------------------------
cpan[2]> install IO::Socket::SSL
IO::Socket::SSL is up to date (2.038).
-----------------------------------------------------------------------------------------------
请问为什么