溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

zabbix3.x發(fā)郵件爆“Support for SMTP authentication was not compiled in“的解決辦法

發(fā)布時(shí)間:2020-09-22 20:27:45 來源:網(wǎng)絡(luò) 閱讀:15888 作者:pangfc 欄目:網(wǎng)絡(luò)安全

如題所示,在zabbix的面板中配置好STMP之后,測(cè)試發(fā)送郵件時(shí)爆“Support for SMTP authentication was not compiled in”這個(gè)錯(cuò)誤。其實(shí)出現(xiàn)這種問題的原因是我們機(jī)器上的libcurl版本太低所致。在zabbix的官方說明文檔上我們可以知道:zabbix3.x要想使用SMTP,那么需要7.20.0及以上版本的curl并且zabbix服務(wù)端在編譯安裝時(shí)需要添加–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

這個(gè)命令查看我機(jī)器上的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

因此,解決方案就很簡(jiǎn)單了:升級(jí)curl,然后再重新編譯安裝zabbix服務(wù)端

(1)升級(jí)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

注:如果發(fā)現(xiàn)爆這個(gè)錯(cuò)的話:

錯(cuò)誤: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


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI