如題所示,在zabbix的面板中配置好STMP之后,測試發(fā)送郵件時爆“Support for SMTP authentication was not compiled in”這個錯誤。其實出現(xiàn)這種問題的原因是我們機(jī)器上的libcurl版本太低所致。在zabbix的官方說明文檔上我們可以知道:zabbix3.x要想使用SMTP,那么需要7.20.0及以上版本的curl并且zabbix服務(wù)端在編譯安裝時需要添加–with-libcurl模塊,官方原文如下:
創(chuàng)新互聯(lián)建站堅持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時代的新泰網(wǎng)站設(shè)計、移動媒體設(shè)計的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!
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
這個命令查看我機(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
因此,解決方案就很簡單了:升級curl,然后再重新編譯安裝zabbix服務(wù)端
(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
注:如果發(fā)現(xiàn)爆這個錯的話:
錯誤: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
網(wǎng)頁題目:zabbix3.x發(fā)郵件爆“SupportforSMTPauthenticationwasnotcompiledin“的解決辦法
文章路徑:http://jinyejixie.com/article42/pspiec.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、ChatGPT、面包屑導(dǎo)航、響應(yīng)式網(wǎng)站、品牌網(wǎng)站建設(shè)、企業(yè)建站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)