How to add remote Linux client to a Zabbix server in RHEL

I will guide you on how you can install and configure Zabbix agents on Linux(RHEL-based distros) in order to actively monitor local resources on remote systems.

Zabbix agents are responsible for collecting local data from the systems they run on and sending it to a central Zabbix server, where the information is processed and analyzed.

Install Zabbix Agents in client Linux Systems

# rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/8/x86_64/zabbix-release-latest-7.0.el8.noarch.rpm
# dnf clean all
# dnf install zabbix-agent

Start Zabbix agent process

# systemctl start zabbix-agent.service
# systemctl enable zabbix-agent.service
# systemctl status zabbix-agent.service

Configure and Test Zabbix Agent in Client Linux

Add Zabbix server IP address and hostname as shown below.

Server=IP of Zabbix Server
ServerActive=IP of Zabbix Server
Hostname=use the FQDN of the node where the agent runs
# vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.1.6
ServerActive=192.168.1.6
Hostname=localhost.bitscentric.com

Once you’ve finished editing the Zabbix agent configuration file with the required values, restart the daemon

# systemctl restart zabbix-agent.service
# systemctl status zabbix-agent.service
# netstat -tunlp | grep zabbix

Add Zabbix Agent Monitored Host to Zabbix Server

To proceed, navigate to the Zabbix server web console to start adding the hosts that have the Zabbix agent installed, so they can be monitored.

Leave a Reply

Your email address will not be published. Required fields are marked *