正文
server.port: 5601
server.host: "
你的ip
"
elasticsearch.url: "http://
你的ip
:9200"
kibana.index: ".kibana"
启动kibana,查看5601端口
首先安装zabbix
安装过程略,可以会遇到一些问题,比如:
22988:20181012:151559.821 cannot initialize history storage: cURL library support >= 7.28.0 is required for Elasticsearch history backend
需要升级libcurl
rpm -ivh http://mirror.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel6.noarch.rpm
yum upgrade curl libcurl libcurl-devel
大部分lib库的问题,安装对应的devel就可以
配置:
首先配置zabbix在es里的索引
在zabbix-3.4.14/database/elasticsearch/找到elasticsearch.map文件,按照一下命令依次创建uint、dbl、log、str、text索引
uint列子:
curl -X PUT \
http://192.168.50.50:9200/uint \
-H 'content-type:application/json' \
-d '{
"settings" : {
"index" : {
"number_of_replicas" : 1,
"number_of_shards" : 5
}
},