How to install Zabbix agent on CentOS 8

Step 1: Go to the /etc/yum.repos.d/ directory.

cd /etc/yum.repos.d/

Step 2: Run the below commands

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update

yum update -y

Step 4:

dnf install https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-agent-6.0.3-1.el8.x86_64.rpm

Edit /etc/zabbix/zabbix_agentd.conf

#Server=[zabbix server ip]
#Hostname=[ Hostname of client system ]

Server=192.168.1.100
ServerAlive=192.168.1.100
Hostname=Server1

systemctl enable zabbix-agent
systemctl start zabbix-agent

References:

https://techglimpse.com/failed-metadata-repo-appstream-centos-8/

https://tecadmin.net/install-zabbix-agent-centos-8/

Comments are closed.