Zabbix download
This docu is made in RHEL but under the link is everything for different OS
Disable Zabbix packages provided by EPEL, if you have it installed.
Edit file /etc/yum.repos.d/epel.repo and add the following statement.
[epel]
...
excludepkgs=zabbix*
Proceed with installing zabbix repository.
rpm -Uvh https://repo.zabbix.com/zabbix/7.4/release/rocky/10/noarch/zabbix-release-latest-7.4.el10.noarch.rpm
dnf clean all`
Package install
dnf install zabbix-agent2
install Plugin Packages needed for DB´s
dnf install zabbix-agent2-plugin-mongodb zabbix-agent2-plugin-mssql zabbix-agent2-plugin-postgresql
Start Zabbix agent 2 process and make it start at system boot.
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2
check if Firewall is Active
RHEL: firewalld.service
systemctl status firewalld.service
IF ACTIVE:
firewall-cmd --add-port={10050/tcp,10051/tcp}
firewall-cmd --permanent --add-port={10050/tcp,10051/tcp}
firewall-cmd --reload
Edit zabbix_agent2.conf
nano /etc/zabbix/zabbix_agent2.conf
Parameter:
Server=127.0.0.1,IP-ZABBIX-SERVER
# Delete this completely or set the Serverhostname in
Hostname=HOSTNAME