Áú»¢¶Ä²©

§¿§ä§à §á§Ö§â§Ö§Ó§à§Õ §ã§ä§â§Ñ§ß§Ú§è§í §Õ§à§Ü§å§Þ§Ö§ß§ä§Ñ§è§Ú§Ú §ã §Ñ§ß§Ô§Ý§Ú§Û§ã§Ü§à§Ô§à §ñ§Ù§í§Ü§Ñ. §±§à§Þ§à§Ô§Ú§ä§Ö §ß§Ñ§Þ §ã§Õ§Ö§Ý§Ñ§ä§î §Ö§Ô§à §Ý§å§é§ê§Ö.

1 §®§à§ß§Ú§ä§à§â§Ú§ß§Ô Linux §ã §á§à§Þ§à§ë§î§ð Áú»¢¶Ä²© §Ñ§Ô§Ö§ß§ä§Ñ

§£§Ó§Ö§Õ§Ö§ß§Ú§Ö

§¯§Ñ §ï§ä§à§Û §ã§ä§â§Ñ§ß§Ú§è§Ö §Ó§í §å§Ù§ß§Ñ§Ö§ä§Ö §à §ê§Ñ§Ô§Ñ§ç, §ß§Ö§à§Ò§ç§à§Õ§Ú§Þ§í§ç §Õ§Ý§ñ §Ù§Ñ§á§å§ã§Ü§Ñ §Ò§Ñ§Ù§à§Ó§à§Ô§à §Þ§à§ß§Ú§ä§à§â§Ú§ß§Ô§Ñ §Þ§Ñ§ê§Ú§ß Linux §ã §á§à§Þ§à§ë§î§ð Áú»¢¶Ä²©. §º§Ñ§Ô§Ú, §à§á§Ú§ã§Ñ§ß§ß§í§Ö §Ó §ï§ä§à§Þ §â§å§Ü§à§Ó§à§Õ§ã§ä§Ó§Ö, §Þ§à§Ø§ß§à §á§â§Ú§Þ§Ö§ß§Ú§ä§î §Ü §Ý§ð§Ò§à§Û §à§á§Ö§â§Ñ§è§Ú§à§ß§ß§à§Û §ã§Ú§ã§ä§Ö§Þ§Ö §ß§Ñ §Ò§Ñ§Ù§Ö Linux.

§¥§Ý§ñ §Ü§à§Ô§à §ï§ä§à §â§å§Ü§à§Ó§à§Õ§ã§ä§Ó§à

§¿§ä§à §â§å§Ü§à§Ó§à§Õ§ã§ä§Ó§à §á§â§Ö§Õ§ß§Ñ§Ù§ß§Ñ§é§Ö§ß§à §Õ§Ý§ñ §ß§à§Ó§í§ç §á§à§Ý§î§Ù§à§Ó§Ñ§ä§Ö§Ý§Ö§Û Áú»¢¶Ä²© §Ú §ã§à§Õ§Ö§â§Ø§Ú§ä §Þ§Ú§ß§Ú§Þ§Ñ§Ý§î§ß§í§Û §ß§Ñ§Ò§à§â §ê§Ñ§Ô§à§Ó, §ß§Ö§à§Ò§ç§à§Õ§Ú§Þ§í§ç §Õ§Ý§ñ §Ó§Ü§Ý§ð§é§Ö§ß§Ú§ñ §Ò§Ñ§Ù§à§Ó§à§Ô§à §Þ§à§ß§Ú§ä§à§â§Ú§ß§Ô§Ñ §Ó§Ñ§ê§Ö§Û §Þ§Ñ§ê§Ú§ß§í Linux. §¦§ã§Ý§Ú §Ó§í §Ú§ë§Ö§ä§Ö §Ó§à§Ù§Þ§à§Ø§ß§à§ã§ä§Ú §Ô§Ý§å§Ò§à§Ü§à§Û §ß§Ñ§ã§ä§â§à§Û§Ü§Ú §Ú§Ý§Ú §Ó§Ñ§Þ §ä§â§Ö§Ò§å§Ö§ä§ã§ñ §Ò§à§Ý§Ö§Ö §á§â§à§Õ§Ó§Ú§ß§å§ä§Ñ§ñ §Ü§à§ß§æ§Ú§Ô§å§â§Ñ§è§Ú§ñ, §ã§Þ. §â§Ñ§Ù§Õ§Ö§Ý §¬§à§ß§æ§Ú§Ô§å§â§Ñ§è§Ú§ñ §â§å§Ü§à§Ó§à§Õ§ã§ä§Ó§Ñ Áú»¢¶Ä²©.

§±§â§Ö§Õ§Ó§Ñ§â§Ú§ä§Ö§Ý§î§ß§í§Ö §å§ã§Ý§à§Ó§Ú§ñ

§±§Ö§â§Ö§Õ §ä§Ö§Þ §Ü§Ñ§Ü §á§â§Ú§ã§ä§å§á§Ú§ä§î §Ü §å§ã§ä§Ñ§ß§à§Ó§Ü§Ö §á§à §ï§ä§à§Þ§å §â§å§Ü§à§Ó§à§Õ§ã§ä§Ó§å, §Ó§Ñ§Þ §ß§Ö§à§Ò§ç§à§Õ§Ú§Þ§à §ã§Ü§Ñ§é§Ñ§ä§î §Ú §å§ã§ä§Ñ§ß§à§Ó§Ú§ä§î §ã§Ö§â§Ó§Ö§â Áú»¢¶Ä²© §Ú §Ó§Ö§Ò-§Ú§ß§ä§Ö§â§æ§Ö§Û§ã Áú»¢¶Ä²© §Ó §ã§à§à§ä§Ó§Ö§ä§ã§ä§Ó§Ú§Ú §ã §Ú§ß§ã§ä§â§å§Ü§è§Ú§ñ§Þ§Ú §Õ§Ý§ñ §Ó§Ñ§ê§Ö§Û §°§³.

Install Áú»¢¶Ä²© agent

Áú»¢¶Ä²© agent is the process responsible for gathering data.

Check your Áú»¢¶Ä²© server version:

zabbix_server -V

Install Áú»¢¶Ä²© agent of the same version (recommended) on the Linux machine that you want to monitor. Based on your monitoring needs, it may be the same machine, where Áú»¢¶Ä²© server is installed, or a completely different machine.

Choose the most suitable installation method:

  • Run as a Docker container - see the list of available images in .

  • Install from Áú»¢¶Ä²© packages (available for Alma Linux, CentOS, Debian, Oracle Linux, Raspberry Pi OS, RHEL, Rocky Linux, SUSE Linux Enterprise Server, Ubuntu).

  • Compile from sources.

Configure Áú»¢¶Ä²© for monitoring

Áú»¢¶Ä²© agent can collect metrics in active or passive mode (simultaneously).

A passive check is a simple data request. Áú»¢¶Ä²© server or proxy asks for some data (for example, CPU load) and Áú»¢¶Ä²© agent sends back the result to the server. Active checks require more complex processing. The agent must first retrieve from the server(s) a list of items for independent processing and then bulk send the data back. See Passive and active agent checks for more info.

Monitoring templates provided by Áú»¢¶Ä²© usually offer two alternatives - a template for Áú»¢¶Ä²© agent and a template for Áú»¢¶Ä²© agent (active). With the first option, the agent will collect metrics in passive mode. Such templates will deliver identical monitoring results, but using different communication protocols.

Further Áú»¢¶Ä²© configuration depends on whether you select a template for active or passive Áú»¢¶Ä²© agent checks.

§±§Ñ§ã§ã§Ú§Ó§ß§í§Ö §á§â§à§Ó§Ö§â§Ü§Ú

Áú»¢¶Ä²© agent

1. Open the Agent configuration file on the machine where the Agent is installed.

sudo vi /etc/zabbix/zabbix_agentd.conf

2. Add the IP address or DNS name of your Áú»¢¶Ä²© server to the Server parameter.

Server=192.0.2.22

3. Restart Áú»¢¶Ä²© agent.

systemctl restart zabbix-agent

Áú»¢¶Ä²© frontend

1. Log in to Áú»¢¶Ä²© frontend.

2. Create a host in Áú»¢¶Ä²© web interface.

  • In the Host name field, enter a host name (e.g., "Linux server").
  • In the Templates field, type or select the template "Linux by Áú»¢¶Ä²© agent" that will be linked to the host.
  • In the Host groups field, type or select a host group (e.g., "Linux servers").
  • In the Interfaces parameter, add Agent interface and specify the IP address or DNS name of the Linux machine where the Agent is installed.

3. Click on Add to add the host. This host will represent the monitored Linux machine.

§¡§Ü§ä§Ú§Ó§ß§í§Ö §á§â§à§Ó§Ö§â§Ü§Ú

Áú»¢¶Ä²© agent

Open Áú»¢¶Ä²© agent configuration file (by default, the path is /usr/local/etc/zabbix_agentd.conf):

sudo vi /usr/local/etc/zabbix_agentd.conf

Add:

  • The name of the host you created in Áú»¢¶Ä²© web interface to the Hostname parameter.
  • The IP address or DNS name of your Áú»¢¶Ä²© server to the ServerActive parameter.

For example:

ServerActive= 192.0.2.22
       Hostname="Linux server"

Áú»¢¶Ä²© frontend

1. Log in to Áú»¢¶Ä²© frontend.

2. Create a host in Áú»¢¶Ä²© web interface.

This host will represent your Linux machine.

3. In the Templates parameter, type or select Linux by Áú»¢¶Ä²© agent active.

View collected metrics

Congratulations! At this point, Áú»¢¶Ä²© is already monitoring your Linux machine.

To view collected metrics, open the Monitoring->Hosts menu section and click on the Latest data next to the host.

This action will open a list of all the latest metrics collected from Linux server host.

Set up problem alerts

Áú»¢¶Ä²© can notify you about a problem with your infrastructure using a variety of methods. This guide provides configuration steps for sending email alerts.

1. Go to the User settings -> Profile, switch to the tab Media and add your email.

2. Follow the guide for Receiving problem notification.

Next time, when Áú»¢¶Ä²© detects a problem you should receive an alert via email.

Test your configuration

On Linux, you can simulate high CPU load and as a result receive a problem alert by running:

cat /dev/urandom | md5sum

You may need to run several processes for CPU load to exceed the treshold.

When Áú»¢¶Ä²© detects the problem, it will appear in the Monitoring->Problems section.

If the alerts are configured, you will also receive the problem notification.

See also: