CentOS 6 升级 curl

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

  

猜你喜欢

转载自www.cnblogs.com/nasdaqhe/p/9253260.html