CentOS 8
dnf -y in http://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-agent2-5.4.9-1.el8.x86_64.rpm dnf -y in zabbix-agent2
Change server Zabbix
sed -i "s/Server=127.0.0.1/Server=127.0.0.1,zabbix.galaxydata.ru/" /etc/zabbix/zabbix_agent2.conf sed -i "s/ServerActive=127.0.0.1/Server=127.0.0.1,zabbix.galaxydata.ru/" /etc/zabbix/zabbix_agent2.conf systemctl start zabbix-agent2.service systemctl enable zabbix-agent2.service systemctl status zabbix-agent2.service
[3] If Firewalld is running allow Zabbix related ports.
CentOS 7
firewall-cmd --add-port=10050/tcp --permanent firewall-cmd --reload
OR ISPMANAGER
nano /etc/sysconfig/iptables
ADD before line
-A INPUT -p udp -m conntrack --ctstate NEW -m multiport --dports 53 -j ACCEPT
ADD
-A INPUT -s zabbix.galaxydata.ru -p tcp -m tcp —dport 10050 -j ACCEPT
-A OUTPUT -s zabbix.galaxydata.ru -p tcp -m tcp —dport 10051 -j ACCEPT