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 Internet Explorer on Ubuntu 20.04

Step 1: Install PlayonLinux kim@kimlinux:~# sudo apt install playonlinux -y Step 2: Install Internet Explorer…

Linux: How to Check CPU Speed

# Check cpu capacity kim@kim-linux:~$ sudo lshw -c cpu | grep capacity capacity: 3600MHz #…

Manually Create a SSL Certificate with LetsEncrypt

Step 1: Install certbot-auto mkdir /etc/letsencryptcd /etc/letsencrypt/wget chmod a+x certbot-auto Step 2: Create the Cert…