小白入门必知必会Zabbix6。0客户端安装
一 安装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客户端安装完成,感谢您的观看,如果对您有帮助,请动动您的小手,让我们一起努力加油吧。