Zabbix agent installation and configuration

Zabbix agent installation

The work of the Zabbix agent is to collect data such as CPU, memory, disk, and network interface usage from a device.

It has a small resource footprint considering that monitoring configurations are centralized on the Zabbix server.

Add Zabbix Agent Repository

Add Zabbix 4.0 repositories using the following commands:

#rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

Once the repo has been added, install the Zabbix agent by executing the following command:

#yum install zabbix-agent zabbix-sender zabbix-get

Configuring Zabbix Agent

Go to the Zabbix Agent configuration file & edit the following changes in it:

# vi/etc/Zabbix/Zabbix_agentd.conf

# On line 97 - Specify Zabbix server IP Address

Server=192.168.10.2

# On line 138 - Specify Zabbix server (For active checks)

ServerActive=192.168.10.2

# On line 150 - Set server hostname reported by Zabbix agent

Hostname=zabagent.example.com (--- Update the agent machine hostname ---)

Start and enable the Zabbix-agent service after making the changes:

#systemctl start zabbix-agent

#systemctl enable zabbix-agent

Enable the Firewall & Check the Service

If firewalld has been enabled, then allow the port 10050/tcp, which is used gy the Zabbix agent daemon.

#firewall-cmd --zone=public --permanent --add-port=10050/tcp

#firewall-cmd --reload

Recent Comments

No comments

Leave a Comment