Posted On January 1, 2021

How To Install Zabbix Client on CentOS 8

kimconnect 0 comments
blog.KimConnect.com >> Linux >> How To Install Zabbix Client on CentOS 8
# Open the commonly known Zabbix ports
firewall-cmd --zone=public --add-port=10050/tcp --permanent
firewall-cmd --zone=public --add-port=161/tcp --permanent

# Configure SELinux to grant Zabbix permissions on the server
setsebool -P httpd_can_connect_zabbix on
setsebool -P httpd_can_network_connect_db on

# Add the repo onto the machine
dnf install https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm

# Install zabbix agent
dnf install zabbix-agent -y

# Install zabbix core if it's not already available on the system
dnf install zabbix -y

# Note as of December 2020, Zabbix core and Zabbix agent in this repo are uncompatible
# Hence, these two components should be installed separately
[rambo@sftp home]# dnf install zabbix zabbix-agent -y
Error: Transaction test error:
  file /etc/zabbix/zabbix_agentd.conf conflicts between attempted installs of zabbix40-4.0.17-1.el8.x86_64 and zabbix-agent-4.4.10-1.el8.x86_64

# Configure zabbix
vim /etc/zabbix/zabbix_agentd.conf

# Tell VIM to show line numbers
: set number

# search for certain words
/ SEARCHWORD

# Proceed to configure these values
Server=[IP or FQDN of the Zabbix server]
Hostname=[hostname of this client machine as defined on the Zabbix server]

# Start Zabbix
service zabbix-agent restart
# systemctl start zabbix-agent # Alternative command

# Enable Zabbix on startup
systemctl enable zabbix-agent

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How To Install Kubernetes on Ubuntu 20.04 Server

Overview Docker is available in 2 versions, Community Edition (CE) and Enterprise Edition (DE). The…

How to Remove Apps in CentOS/Redhat

Check the repo directory: [root@localhost ~]# ls /etc/yum.repos.d CentOS-Base.repo CentOS-Sources.repo CentOS-CR.repo CentOS-Vault.repo CentOS-Debuginfo.repo docker-ce.repo CentOS-fasttrack.repo…

Ubuntu 18.04: Network Configuration Utility

Prior to version 18.04, network configurations have been via these commands: sudo vim /etc/network/interfaces sudo…
Other project: DragonCoin.com