天天看點

部署zabbix-agent端

我使用的是清華源

先下載下傳一個拉包指令或者使用SCP一些第三方的遠端都可以
[添加連結描述](https://mirrors.tuna.tsinghua.edu.cn/)
[r[email protected] zabbix-server-mysql-3.4.15]# yum install lrzsz -y
           

安裝二進制包

[[email protected] zabbix-server-mysql-3.4.15]# rpm -ivh zabbix-agent-3.2.9-1.el7.x86_64.rpm 
warning: zabbix-agent-3.2.9-1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:zabbix-agent-3.2.9-1.el7         ################################# [100%]

這是安裝好的一個狀态,如果報錯請用yum安裝就好了
yum  localinstall zabbix-agent-3.2.9-1.el7.x86_64.rpm 
修改zabbix/zabbix_agentd.conf 檔案
[[email protected] zabbix-server-mysql-3.4.15]# vim /etc/zabbix/zabbix_agentd.conf 
Server=172.8.10.233      #修改成zabbix-server端的IP    95行
[[email protected] zabbix-server-mysql-3.4.15]# systemctl start zabbix-agent
[[email protected] zabbix-server-mysql-3.4.15]# systemctl enable zabbix-agent
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.
[[email protected] zabbix-server-mysql-3.4.15]# 
           

繼續閱讀