一 安装Zabbix客户端
1.1 清华源
https://mirrors.tuna.tsinghua.edu.cn/
1.2 下载rpm包并解压
wget --no-check-certificate https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm
rpm -ivh zabbix-release-6.0-4.el7.noarch.rpm
yum list |grep zabbix-agent2
1.3 安装Zabbix客户端
yum install zabbix-agent2 -y
1.4 客户端配置
sed -i 's#Server=127.0.0.1#Server=192.168.0.103#g' zabbix_agent2.conf /etc/zabbix/zabbix-agent2.conf
grep -n '^[a-Z]' /etc/zabbix/zabbix_agent2.conf
13:PidFile=/run/zabbix/zabbix_agent2.pid
32:LogFile=/var/log/zabbix/zabbix_agent2.log
43:LogFileSize=0
80:Server=192.168.0.103
133:ServerActive=127.0.0.1
144:Hostname=Zabbix server
281:Include=/etc/zabbix/zabbix_agent2.d/*.conf
343:ControlSocket=/tmp/agent.sock
488:Include=./zabbix_agent2.d/plugins.d/*.conf
1.5 启动客户端
systemctl enable zabbix-agent2 --now
systemctl status zabbix-agent2
netstat -lntp|grep zabbix
1.6 解决中文乱码
C:WindowsFonts
zabbix字体的放置目录:/web/zbx/assets/fonts
上传微软雅黑字体
默认是DejaVuSans字体,改成msyh微软雅黑字体
cp DejaVuSans.ttf{,.bak}
mv msyh.ttc DejaVuSans.ttf
验证中文是否正常
至此Zabbix6.0客户端安装完成,感谢您的观看,如果对您有帮助,请动动您的小手,让我们一起努力加油吧。
页面更新:2024-03-19
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2008-2024 All Rights Reserved. Powered By bs178.com 闽ICP备11008920号-3
闽公网安备35020302034844号