RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
zabbix3.x发邮件爆“SupportforSMTPauthenticationwasnotcompiledin“的解决办法

如题所示,在zabbix的面板中配置好STMP之后,测试发送邮件时爆“Support for SMTP authentication was not compiled in”这个错误。其实出现这种问题的原因是我们机器上的libcurl版本太低所致。在zabbix的官方说明文档上我们可以知道:zabbix3.x要想使用SMTP,那么需要7.20.0及以上版本的curl并且zabbix服务端在编译安装时需要添加–with-libcurl模块,官方原文如下:

创新互联建站坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站建设、成都网站设计、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的新泰网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

To make SMTP authentication options available, Zabbix server should be compiled with the –with-libcurl compilation option with cURL 7.20.0 or higher.

然后,我通过

[root@localhost ~]# curl -V

这个命令查看我机器上的curl版本,果然是版本太低

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
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

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

(1)升级curl:

[root@localhost ~]# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm


[root@localhost ~]# yum install libcurl

注:如果发现爆这个错的话:

错误:Package: libcurl-7.49.1-3.1.cf.rhel6.x86_64 (city-fan.org)
          Requires: libnghttp2.so.14()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

可以这样解决:

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


[root@localhost ~]# yum install libnghttp2

然后再重新安装curl:

[root@localhost ~]# yum install libcurl

(2)重新编译安装zabbix3:

[root@localhost zabbix-3.0.3]# cd /usr/local/src/zabbix-3.0.3

[root@localhost zabbix-3.0.3]# ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-MySQL --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

[root@localhost zabbix-3.0.3]# make && make install

当前名称:zabbix3.x发邮件爆“SupportforSMTPauthenticationwasnotcompiledin“的解决办法
本文链接:http://sczitong.cn/article/pspiec.html