nasdaqhe's blog

被生活强jian着
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

CentOS 6 升级 curl

Posted on 2018-07-02 12:17  nasdaqhe  阅读(1371)  评论(0编辑  收藏  举报

zabbix 发邮件报 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.

 

升级 curl 操作如下:

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm

 

vim /etc/yum.repos.d/city-fan.org.repo

 修改所有 enabled=1 to enabled=0

 

yum --enablerepo=city-fan.org update curl

 

升级完成后,需要重新编译安装 zabbix