我最近使用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
软件包有没有人遇到过这个问题,或者不知道会发生什么?
任何帮助,将不胜感激!
谢谢 :)
最佳答案
587是STARTTLS,请对SSL / TSL使用465(不要忘记配置安全组):
您可能对电子邮件/电子邮件域验证有疑问。确保没问题。
关于email - 无法让Zabbix发送电子邮件警报,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43984373/