安装Zabbix客户端zabbix-agent2

Ubuntu系统:下载链接:http://mirrors.aliyun.com/zabbix/zabbix/6.0/ubuntu/pool/main/z/zabbix/?spm=a2c6h.25603864.0.0.5e804167HzHeoe

以ubuntu20.04的64位系统为例:

Index of /zabbix/zabbix/6.0/ubuntu/pool/main/z/zabbix/

此刻的最新版本是:agent2

4.2 MB 2022-08-29 17:29

而不是:agent1 

224.3 KB 2022-08-29 17:29

 

CentOS7系统

/zabbix/zabbix/6.0/rhel/7/x86_64/

5.1 MB 2022-08-29 17:37

CentOS8系统

/zabbix/zabbix/6.0/rhel/8/x86_64/

5.3 MB 2022-08-29 17:40

 

客户端的配置angent2配置Server服务器的路径

vim /etc/zabbix/zabbix_agent2.conf

找到Server=127.0.0.1

修改为服务器地址192.168.1.1

root@Zabbix-agent:~# grep '^[a-Z]' /etc/zabbix/zabbix_agent2.conf 
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=192.168.1.1
ServerActive=127.0.0.1
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
Include=./zabbix_agent2.d/plugins.d/*.conf
root@Zabbix-agent:~#

 

posted @ 2022-09-01 21:06  Magiclala  阅读(1036)  评论(0编辑  收藏  举报