一篇文章带给你Zabbix 5.4 alpha版本体验
source link: http://os.51cto.com/art/202102/646290.htm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Zabbix官方在2021年1月29日发布Zabbix 5.4 Pre-release,本次版本最大的亮点是API令牌和全局脚本的调用这两个功能,其他在性能方面做了一些优化,例如删除部分轮询器直连数据库,调整了部分前端,例如加入了三级菜单。从5.0版本之后,Zabbix确实也在向着简单易用的方向迈进,以下是详细内容。
官方下载入口
官方提供下载入口
安装界面
安装界面一览
首页
全局自定义脚本的加入
全局脚本
调用
主机列表UI调整
和以前相比,调整过后的UI更加简洁,放在图标上可以显示详细状态
API令牌
5.4版本终于加入了API令牌功能,这样在API请求时重复login动作,只需要拿到用户的API即可,更加简洁
SNMPV3部分新增认证和加密
身份验证
- SHA224
- SHA256
- SHA384
- SHA512
加密
- AES192
- AES256
- AES192C(思科)
- AES256C(思科)
新增趋势函数缓存功能
上个版本为实时查询数据库进行实时计算,在新版本趋势函数可以将计算的结果缓存至数据库。
轮询器优化
不可达轮询器和JMX轮询器已经不再与数据库直接连接,减小数据库的压力
LLD过滤器新增运算规则
存在和不存在
新增VMware群集性能计数器
vmware.cl.perfcounter[<url>,<id>,<path>,<instance>]
新增宏
{ITEM.VALUETYPE}:返回该项目的的类型,0,浮点数,1,字符,2,对数,3,无符号数字,4,文本。
前端调整
除了新增三级菜单,其他没有什么太大特别的。
附录
安装方法
1.导入阿里云的yum仓库(还是老问题,Zabbix的那个CDN实在太烂。。。,国内下载容易出现中断)
cat <<EOF > /etc/yum.repos.d/zabbix.repo [zabbix] name=Zabbix Official Repository - \$basearch baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.3/rhel/8/\$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-non-supported] name=Zabbix Official Repository non-supported - \$basearch baseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/8/\$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 EOF 添加 gpgkey curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX-A14FE591 \ -o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 curl https://mirrors.aliyun.com/zabbix/RPM-GPG-KEY-ZABBIX \ -o /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
2.安装Zabbix相关组件
dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
3.数据库安装,并启动配置
dnf -y install mariadb-server systemctl start mariadb && systemctl enable mariadb mysql -uroot -p create database zabbix character set utf8 collate utf8_bin; create user zabbix@localhost identified by '自己定义'; grant all privileges on zabbix.* to zabbix@localhost; quit; zcat /usr/share/doc/zabbix-sql-scripts/database/mysql/create.sql.gz | mysql -uzabbix -p zabbix
4.调整Zabbix配置文件
vi /etc/zabbix/zabbix_server.conf 找到下面一行,去掉#,改为上文数据库用户名对应的密码即可 DBPassword=自己定义
5.启动服务
systemctl restart zabbix-server zabbix-agent httpd php-fpm systemctl enable zabbix-server zabbix-agent httpd php-fpm
6.demo环境
34.96.155.206,用户名密码默认
总结
整体来看5.4相比5.2还是新增了很多功能,而且都比较实用,特别是API令牌,这个其实也不算新功能,很多软件都有,只不过Zabbix官方现在才加上去,另外可以看到zabbix的插件在逐渐在向agent2靠拢,很多监控模板都是基于agent2,想必未来会替换掉agent1版本,也期待Zabbix 6.x版本,性能也更加优秀,如果大家想要看更多的更新日志,可以点击下方查看更多,如果看不懂英文的,可以使用edge或者谷歌浏览器在线翻译即可。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK