![]() In a production environment, it’s advisable to use certificates or pre-shared keys to encrypt the connection between the clients and the Zabbix server. On Ubuntu you can do this with: $ sudo ufw allow 10050/tcp Remember that if the remote host is behind a firewall, you’ll also need to open the 10050/TCP port for the agent to talk to the Zabbix server. After making the modification, start the agent and enable it just as you did earlier on the Zabbix server. Make sure you modify the entries as per your environment. Scroll the file to find lines mentioned below and uncomment them to point to your Zabbix server and give it a unique name: Server=192.168.0.50 Once you’ve installed the Zabbix repository, use the package management tools to pull in the zabbix-agent package.Īfter installing the packages, open the Zabbix agent’s configuration file: $ sudo nano /etc/zabbix/zabbix_nf Follow the instructions in the Zabbix manual to grab the relevant repository packages for either the RPM or DEB based distribution. Begin the process by first adding the official Zabbix repository to the remote host you wish to monitor. The process for monitoring a remote host is a little more involved. The agent is installed locally, so it requires no configuration, and there’s no need to take steps to send the data over an encrypted channel. Select the entry before clicking the Enable button to bring the monitoring server online.Īdding the local Zabbix server as a host is very simple and straightforward since there isn’t any real configuration installed. The page will only list a single host named Zabbix server. To do this head to Configuration | Hosts. The Zabbix server host that you’ve just installed the agent on is disabled by default you’ll need to enable it manually before it can receive data from the agent. Once it’s installed, start the agent, and set it up to start automatically at boot: $ sudo systemctl start zabbix-agentĪll network devices that Zabbix monitors are known as hosts. ![]() ![]() Since you’ve already added the Zabbix repository in this Ubuntu 18.04 installation, you will simply pull in the Zabbix agent: $ sudo apt install zabbix-agent The first machine to monitor will be the one on which you’ve set up the Zabbix server. ![]() Now that the infrastructure is all deployed and configured, you can put it to real use by setting up a client for monitoring. ![]()
0 Comments
Leave a Reply. |