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: how to bypass login keyring prompts

Error Message:  Something along the line of 'keyring default keyring but it is locked' Resolution:…

How To Run Python Interactive Command Line Mode (CLI)

Windows PS C:\WINDOWS\system32> python Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit…

Logical Volume Management: A Practical Illustration

# Runas root kim@kimlinux:~$ sudo su - # List all disks fdisk -l | grep…
Other project: DragonCoin.com