描述
zabbix配置历史数据存储到ES时,报错
cannot initialize history storage: cURL library support >= 7.28.0 is required for Elasticsearch history backend
解决方法
升级CURL
1、下载包
https://curl.haxx.se/latest.cgi?curl=tar.gz
去这个地址下载包
2、安装
make&&make install
应该很顺利就安装好了,默认安装在了/usr/local下了,所以把/usr/bin下之前的curl和curl-config命令替换为/usr/local/bin下的curl和curl-config命令(可以使用拷贝和链接的方法)
3、验证
curl --version
curl 7.61.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.0.1e zlib/1.2.3
Release-Date: 2018-07-11
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets HTTPS-proxy
重点来了
发现安装完后,启动zabbix依然报错,我都哭了,解决方法:
1、重新编译下zabbix_server
去zabbix的源码包中,重新编译
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
然后
make
`没有make install呀`
2、替换
拷贝源码包中的zabbix_server到你的zabbix安装目录的sbin下
源码包中的zabbix_server的位置src/zabbix_server/zabbix_server
3、重新启动,应该是ok了
先写到这里了,如果有问题请加入qq群630300475,大家一起聊一下