rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
dnf clean all
dnf install zabbix-agent
rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
yum clean all
yum install zabbix-agent
Troubleshooting Agent Setup
Ensure your hostname in the Zabbix UI matches the Hostname in the agents config file.
For passive checks, the Zabbix server should be able to ping the agent by the ip address or domain name you set up in the host configuration interface fields. And that you can telnet, from the Zabbix server (or Zabbix Proxy, if configured to use a proxy), to the port (default 10050), that the agent process is listening on.
For active checks, the server with the agent running, should be able to ping the ip address, or domain name you've set in the ServerActive parameter in the agents configuration file. This address will be the Zabbix Server, and/or the Zabbix Proxy. It should also be able to telnet to the Zabbix Server/Proxy port (default 10051)
To read the Zabbix Agent log files on the host,
tail -f /var/log/zabbix/zabbix_agentd.log
To read the Zabbix Server logs, on the Zabbix Server type,