Zabbix Agent is a process that runs on remote machines, which need to monitory through the Zabbix server. The agent collects the data on the remote server and provides to Zabbix server on requests on periodically. required to install on all remote systems that need to be monitor through the Zabbix server.
There are two types of checks between Zabbix Server and Client.
- Passive Check – Zabbix Agent sent data to server on their request.
- Active Check – Zabbix Agent sends data periodically to server.
After installing zabbix server on your system. Now we are moving to install agent on remote system’s. This article will help you to install zabbix agent on CentOS/RHEL 7/6/5 systems. After completing this step go to next article add Host in Zabbix Server.
Step 1 – Disable SELinux
By default, SELinux is enabled in CentOS 8. It is a good idea to disable the SELinux to work Zabbix properly.
You can disable the SELinux by editing /etc/selinux/config file:
Change the following line:
Save and close the file when you are finished then restart your system to reflect the changes.
Step 2 – Install Zabbix Agent
By default, Zabbix is not available in the CentOS 8 default repository. So you will need to install the Zabbix repository in your system.
At the time of writing this tutorial, the latest version of Zabbix is Zabbix 4.4. You can install the Zabbix 4.4 repository package by running the following command:
After installing yum repository packages in our system. Use the following command to install the Zabbix agent on your CentOS 8 or RHEl systems using the yum package manager.
Once the installation is completed, start the Zabbix agent service, and enable them to start after system reboot with the following command:
Step 3 – Configure Zabbix Agent
Now, you need to configure the Agent service to allow Zabbix server requests. Edit the Zabbix agent configuration file by adding the Zabbix server IP.
/etc/zabbix/zabbix_agentd.conf
Step 4 – Adjust Firewall for Zabbix
Next, you will need to allow the Zabbix ports 10050 and 10051. and HTTP service through the firewall. You can allow them with the following command:
Step 5 – Restarting Zabbix Agent
After adding Zabbix server IP to the configuration file, now restart agent service to reload the new settings, using the following command.
To start and stop zabbix-agent service anytime use following commands.
Tidak ada komentar:
Posting Komentar