[zabbix] - install zabbix agent trên ubuntu

 

a. Install Zabbix repository

Disable Zabbix packages provided by EPEL, if you have it installed. Edit file /etc/yum.repos.d/epel.repo and add the following statement.

[epel]
...
excludepkgs=zabbix*

Proceed with installing zabbix repository.

# rpm -Uvh https://repo.zabbix.com/zabbix/7.2/release/alma/9/noarch/zabbix-release-latest-7.2.el9.noarch.rpm
# dnf clean all
b. Install Zabbix agent
# dnf install zabbix-agent
c. Start Zabbix agent process

Start Zabbix agent process and make it start at system boot.

# systemctl restart zabbix-agent
# systemctl enable zabbix-agent
sửa lại file config để thêm ip của zabix server/etc/zabbix/zabbix_agentd.conf 
Server=IP_Zabbix_Server
ServerActive=IP_Zabbix_Server
Hostname=Hostname_của_máy_Client
mơ port 
sudo ufw allow 10050/tcp
khởi động lại agent 
sudo systemctl restart zabbix-agent
sudo systemctl enable zabbix-agent
sudo systemctl status zabbix-agent

Nhận xét