无法让Zabbix通过电子邮件发送提醒

时间:2017-05-15 16:18:43

标签: email ssl amazon-ses zabbix

我最近使用Php 7.0在Ubuntu 16.04上运行了一个新的Zabbix 3.0实例,我遇到了很多问题,试图通过电子邮件向Zabbix管理员发送电子邮件。我们正在尝试使用Amazon SES发送电子邮件。对于我们的设置,我们有一个用户名&由SES生成的密码我们使用端口587与SSL / TLS连接。我确保已启用警报并且还启用了电子邮件媒体类型。我还仔细检查了Zabbix是用SMTP&编译的。 TLS支持。我还验证了Zabbix服务器可以通过端口587到达Amazon SMTP端点。从消息来看,这似乎是某种形式的通信问题,但我所尝试的一切都不是真的把我带到任何地方。

SSL connect error: Encountered end of file

26163:20170515:131115.744 * NSS error -5938 (PR_END_OF_FILE_ERROR)
26163:20170515:131115.744 * Encountered end of file
26163:20170515:131115.744 * Closing connection 0
26163:20170515:131115.744 SSL connect error: Encountered end of file
26163:20170515:131115.744 End of send_email():FAIL
26163:20170515:131115.744 End of execute_action():FAIL
26163:20170515:131115.744 error sending alert ID [812]
26163:20170515:131115.744 query without transaction detected
26163:20170515:131115.744 query [txnlev:0] [update alerts set 
retries=1,error='SSL connect error: Encountered end of file' where 
alertid=812]
26163:20170515:131115.746 In execute_action(): alertid [813] mediatype [0]
26163:20170515:131115.746 In send_email() smtp_server:'email-smtp.us-east-
1.amazonaws.com' smtp_port:587 smtp_security:2 smtp_authentication:1
26163:20170515:131115.750 *   Trying 54.235.77.145...
26163:20170515:131115.752 * Connected to email-smtp.us-east-1.amazonaws.com 
(54.235.77.145) port 587 (#0)
26163:20170515:131115.752 * WARNING: failed to load NSS PEM library 
libnsspem.so. Using OpenSSL PEM certificates will not work.
26166:20170515:131115.761 __zbx_zbx_setproctitle() title:'http poller #1 
[got 0 values in 0.000736 sec, getting values]'
26166:20170515:131115.761 In process_httptests()
26166:20170515:131115.761 query [txnlev:0] [select h.hostid,h.host,h.name,t.httptestid,t.name,t.variables,t.headers,t.agent,t.authentication,t.http_user,t.http_password,t.http_proxy,t.retries,t.ssl_cert_file,t.ssl_key_file,t.ssl_key_password,t.verify_peer,t.verify_host from httptest t,hosts h where t.hostid=h.hostid and t.nextcheck<=1494868275 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
26166:20170515:131115.762 End of process_httptests()
26166:20170515:131115.762 query [txnlev:0] [select min(t.nextcheck) from httptest t,hosts h where t.hostid=h.hostid and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
26166:20170515:131115.762 No httptests to process in get_minnextcheck.

仅供参考,我确实Zabbix正在运行HTTPS。为了进行配置,我刚刚对启用Apache站点的默认文件进行了更改,以指向本地计算机上的证书。他们是签署的证书。我还安装了最新的openssl

之前是否有人遇到此问题或知道可能发生的事情?

任何帮助将不胜感激!

谢谢:)

1 个答案:

答案 0 :(得分:1)

587是STARTTLS,使用465用于SSL / TSL(不要忘记配置安全组): enter image description here

您可能遇到电子邮件/电子邮件域验证问题。确保没问题。