zabbix3。x发邮件爆“支持SMTP认证不是编译”的解决办法

  

如题所示,在zabbix的面板中配置好STMP之后,测试发送邮件时爆“支持SMTP认证不是编译”这个错误。在zabbix的官方说明文档上我们可以知道:zabbix3.x要想使用SMTP,那么需要7.20.0及以上版本的旋度并且zabbix服务端在编译安装时需要添加模块,官方原文如下:

SMTP认证选项,zabbix服务器应该编译-with-libcurl  compilation 选择与旋度7.20.0或更高。

然后,我通过

[root@localhost  ~] #, curl  - v

curl  7.19.7  (x86_64-redhat-linux-gnu), libcurl/7.19.7  NSS/3.21, Basic  ECC  zlib/1.2.3  libidn/1.18 libssh3/1.4.2   协议:tftp  ftp  telnet  dict  ldap  ldaps  http  file  https  ftps  scp  sftp   特点:,GSS-Negotiate  IDN  IPv6  Largefile  NTLM  SSL  libz

因此,解决方案就很简单了:升级卷发,然后再重新编译安装zabbix服务端

[root@localhost  ~] #, rpm  -Uvh  http://www.city - fan.org/ftp/contrib/yum repo/rhel6/x86_64/city fan.org -释放- 1 - 13. rhel6.noarch.rpm         [root@localhost  ~) #, yum  install  libcurl

错误:包:,libcurl-7.49.1-3.1.cf.rhel6.x86_64  (city-fan.org)   ,,,,,,,,,要求:,libnghttp2.so.14()(64位)   ,你could  try  using ——skip-broken 用work  around 从而问题   跑步,你could  try :, rpm  -Va ——nofiles ——nodigest

[root@localhost  ~] #, rpm  -Uvh  http://dl.fedoraproject.org/pub/epel/6/x86_64/libnghttp2 - 1.6.0 el6.1.x86_64.rpm——1.         [root@localhost  ~) #, yum  install  libnghttp2

[root@localhost  ~] #, yum  install  libcurl

[root@localhost  zabbix-3.0.3] #, cd /usr/地方/src/zabbix-3.0.3      [root@localhost  zabbix-3.0.3] #,。/configure ——prefix=/usr/地方/zabbix ——enable-server ——enable-agent ——with-mysql ——enable-ipv6 ——with-net-snmp ——with-libcurl ——with-libxml2      [root@localhost  zabbix-3.0.3] #, make ,,, make 安装


zabbix3。x发邮件爆“支持SMTP认证不是编译”的解决办法