zabbix 4.0.2是一个长期支持版本(lts),至少提供 5 年的技术支持;
下面简单看一下zabbix 4.0.2 新特征
更具时效的监控项值检查(checking item value immediately)
新的 http 监控项类型(new http item type)
监控项原型可以依赖于常规的监控项(item prototypes can depend on regular items)
更灵活的主动式 agent 自动注册(more flexible active agent auto-registration)
支持 mysql 8.0(mysql 8.0 supported)
elasticsearch 配置基于日期的索引(date-based indices setup for elasticsearch)
172.16.8.76 qas-zabbix-node01
172.16.8.77 vip地址
172.16.8.78 qas-zabbix-node02
mysql安装请参考相关链接:
centos7.5安装mysql5.7.24二进制包方式部署
http://172.16.8.76/zabbix/
登陆默认用户名:admin,密码:zabbix
http://172.16.8.76:9200/
http://172.16.8.78:9200/
修改gruntfile.js文件,修改服务监听地址(增加hostname属性,将其值设置为*)
vim gruntfile.js
修改head/_site/app.js,修改head连接es的地址(修改localhost为本机的ip地址)
vim _site/app.js
直接访问urlhttp://172.16.8.78:5601
如果不同类型使用不同的es集群,可以按如下进行配置
$history['url'] = [
'uint' => 'http://localhost1:9200',
'text' => 'http://localhost2:9200'
];
$history['types'] = ['uint', 'text'];
所有类型使用相同es集群
$history['url'] = 'http://172.16.8.76:9200';
$history['types'] = ['str', 'text', 'log', 'uint', 'dbl'];