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

Linux: An Experience in Resizing a Root Partition

Scope: These instructions are intended for Linux systems without Logical Volume Manager (LVM). For that…

How To Install Adobe Acrobat Reader DC on Linux Mint 20

Adobe Acrobat Reader may be available as a .deb install-able package. However, its 'Reader DC'…

Useful Linux Command Aliases

# Create an alias command lsn to display files with numerical representation of schmod permissions…
Other project: DragonCoin.com