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

User Accounts Management

# Method 1 # Disable account while still retain "sudo su userX"   # Block…

How to Install & Configure Pihole on Ubuntu 20.04

1. Installation- Run these commands: # sudo apt-get install gamin -ysudo curl -sSL https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh |…

Linux: How to Change IP Address of CentOS 8 Machine

# Check the network interface config files ls /etc/sysconfig/network-scripts [cuilo@web02 ~]$ ls /etc/sysconfig/network-scripts ifcfg-ens192 #…