![]() On the next step it’s time to move to the Zabbix server web console and start adding the hosts which run zabbix agent in order to be monitored by the server. Finally, in order to test if you can reach Zabbix Agent from Zabbix Server, use Telnet command from Zabbix server machine to the IP addresses of the machines that run the agents, as illustrated below (don’t worry about the thrown error from agents): # telnet zabbix_agent_IP 10050Ĭheck Zabbix Agent Connection Step 3: Add Zabbix Agent Monitored Host to Zabbix ServerĦ. $ sudo firewall-cmd -add-port=10050/tcp -permanent įor older distributions such as RHEL/CentOS 6 or unmanaged firewalls through specific utilities use the powerful iptables command to open ports: # iptables -A INPUT -p tcp -m tcp -dport 10050 -j ACCEPTĥ. ![]() If your system is behind a firewall then you need to open 10050/tcp port on the system in order to reach through the Zabbix server.įor Debian based systems, including Ubuntu, you can use the ufw tool to open the port and on RHEL-based, you can use Firewalld utility to manage the firewall rules as the below examples: $ sudo ufw allow 10050/tcp ![]() Once you’ve finished editing the Zabbix agent configuration file with the required values, restart the daemon using the following command, then use the netstat command to verify if the daemon has been started and operates on the specific port – 10050/tcp: $ sudo systemctl restart zabbix-agentįor older distributions use the service command to manage Zabbix agent daemon: $ sudo service zabbix-agent restartĤ. Hostname=use the FQDN of the node where the agent runsĪdd Zabbix Server IP Address Add Zabbix Server Active IP Address Add Zabbix Agent Hostnameģ. Therefore, open the zabbix_nf file with your favorite text editor, find the below lines (use the screenshots as a guide), uncomment them and make the following changes: # nano /etc/zabbix/zabbix_nfĪdd Zabbix server IP address and hostname as shown below.Ĭonfigure Zabbix Agent – zabbix_nf Server=IP of Zabbix Server The next logical step after installing the packages on the system is to open the Zabbix agent configuration file located in /etc/zabbix/ system path on both major distributions and instruct the program to send all the collected information to the Zabbix server in order to be analyzed and processed. Step 2: Configure and Test Zabbix Agent in LinuxĢ. In order to automatically manage missing dependency issues and install the agent using one-shot use the yum command followed by the binary package download link, as in the example below used for installing the agent on CentOS 8: - On RHEL 8. rpm packaged for the distribution-specific release number, using the same page as above, and install it using rpm package manager. $ sudo dpkg -i zabbix-agent_5.4.7-1+ubuntu18.04_bįor RHEL alike systems, download the. Install Zabbix Agent in Ubuntu - On Ubuntu 20.04. Depending on the Linux distribution you are running, go to the Zabbix download page, grab the latest version of the available agent’s binary packages using a tool such as wget or curl and install it on your machine using the distribution-specific package manager – Yum, Rpm or Dpkg.įor Debian/Ubuntu systems (including latest releases) use the following steps to download and install Zabbix Agent: Install Zabbix Agent in Debian - On Debian 11. Step 1: Install Zabbix Agents in Linux Systemsġ. How to Configure Zabbix to Send Email Alerts to Gmail Account – Part 2.How to Install Zabbix on RHEL/CentOS and Debian/Ubuntu – Part 1.Install and Configure Zabbix on Debian/Ubuntu and RHEL/ CentOS/ Fedora and Rocky Linux/ AlmaLinux. The main job of Zabbix agents consists in gathering local information from the targets where they run and sending the data to a central Zabbix server to be further processed and analyzed. Continuing the Zabbix series, this tutorial will guide you on how you can install and configure Zabbix agents on Linux ( Debian-based systems and RHEL-based distros) in order to actively monitor local resources on remote systems.
0 Comments
Leave a Reply. |