---
title: "Cloud server with Zabbix"
sidebar_label: "Zabbix"
sidebar_position: 11
toc_max_heading_level: 3
description: "How to create a cloud server for monitoring network parameters, server status, and performance"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import {CustomTable} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'
import CopyIcon from '@selectel/docux/icons/copy'
import CreateServer from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/cloud-servers/applications/create-server-for-apps.mdx'

# Cloud server with Zabbix

Zabbix is an open-source software solution for distributed monitoring of network parameters, as well as server status and performance.

You can [create a cloud server with a pre-installed Zabbix application](#create-cloud-server-with-zabbix). In Russia, the application runs on a cloud server with the pre-configured [SelectOS 1 64-bit](https://selectos.selectel.ru/news/mega/) operating system. In other [countries](/infrastructure/locations.mdx#country) — Ubuntu 22.04.

Before creating a cloud server with an application, review the [software license agreements](https://423.selcdn.ru/kb/license-agreements-for-application-images-LANG.pdf) included in the image.

## Minimum resource requirements \{#minimum-requirements}

<CustomTable>
  <table>
    <tbody>
      <tr>
        <th>vCPU count</th><td>4</td>
      </tr>

      <tr>
        <th>RAM</th><td>8 GB</td>
      </tr>

      <tr>
        <th>Boot volume</th><td>16 GB</td>
      </tr>
    </tbody>
  </table>
</CustomTable>

## Create a cloud server with Zabbix \{#create-cloud-server-with-zabbix}

For Zabbix to work, the cloud server must be accessible from the internet. To do this, when creating the server, you need to create a private subnet and attach a public floating IP address. To configure Zabbix, you must specify the application parameters when creating the server.

After creating the server with Zabbix, a free [TLS certificate from Let’s Encrypt®](/certificates-manager/certificates/lets-encrypt.mdx) will be automatically issued for the domain you specify. To issue the certificate, add an A record for the domain and specify the server's public floating IP address as the record value. You can add the domain to [Selectel DNS Hosting (actual](/dns-hosting/)).

1. [Create a public floating IP address](#create-floating-ip).

2. [Add an A record for the domain](#add-a-record).

3. [Create a cloud server with Zabbix](#create-zabbix-server).

### 1. Create a public floating IP address \{#create-floating-ip}

Create a public floating IP address so the cloud server with Zabbix is accessible from the internet.

Use the [Create a public floating IP address](/cloud-servers/cloud-networks/public-floating-ip-addresses.mdx#create-public-floating-ip) section of the [Public Floating IP addresses](/cloud-servers/cloud-networks/public-floating-ip-addresses.mdx).

### 2. Add an A record for the domain \{#add-a-record}

[Add a resource record](/dns-hosting/records/add-record.mdx) to access Zabbix by domain.

Specify:

* [resource record type](/dns-hosting/records/add-record.mdx#record-types) in the group — A;
* record value — the public floating IP address that you [created in step 1](#create-floating-ip).

### 3. Create a cloud server with Zabbix \{#create-zabbix-server}

<CreateServer AppNameInPanel="Cloud Zabbix" MinConfig="2 vCPU, RAM starting from 8 GB and a boot disk size starting from 20 GB" OptionalVolumes="Optional: add an additional" VolumeSize="Specify the size of the network disk in GB or TB">
  4. Fill in the application parameters:

     4.1. Enter the domain to access Zabbix that you [added in step 2](#add-a-record).

     4.2. In the **PostgreSQL password** field, enter the database user password. The password must contain:

     * at least eight characters;
     * at least one uppercase letter;
     * at least one lowercase letter;
     * at least one digit.

     4.3. In the **Email for Let's Encrypt** field, enter an email address to create an account and receive Let’s Encrypt® notifications.

     4.4. In the **HTTPS method** field, specify the parameter value for automatic issuance of a TLS certificate from Let’s Encrypt®. Valid values:

     * `redirect` — a certificate will be issued, and HTTP requests will be redirected to HTTPS;
     * `noredirect` — a certificate will not be issued.
</CreateServer>

## Connect a local computer to monitoring \{#add-local-computer-to-monitoring}

Zabbix agents are used for monitoring local computers and applications.

The Zabbix agent collects operational information locally and sends data to the Zabbix server for processing.

Information collection for the Zabbix server depends on the check type:

* [passive checks](https://www.zabbix.com/documentation/6.4/en/manual/appendix/items/activepassive#passive-checks) — the Zabbix server (or proxy) sends a request. The agent returns the result;
* [active checks](https://www.zabbix.com/documentation/6.4/en/manual/appendix/items/activepassive#active-checks) — the agent first receives a list of 4 data items to process from the Zabbix server. Then it will send new values to the server on a schedule.

The Zabbix server notifies the server administrator when issues arise. For example, if a service process on a local machine crashes or disk space runs out.

1. [Install the Zabbix agent on a local computer](#install-zabbix-agent-locally).

2. [Configure checks](#configure-checks).

### 1. Install the Zabbix agent on a local computer \{#install-zabbix-agent-locally}

You can install the Zabbix agent locally in two ways:

* from a package that can be downloaded from the [official Zabbix repository](https://www.zabbix.com/download?zabbix=6.4\&os_distribution=ubuntu\&os_version=22.04\&components=agent\&db=\&ws=);
* manually — for details, see the [Installation from sources](https://www.zabbix.com/documentation/6.4/en/manual/installation/install) section of the official Zabbix documentation.

See the list of supported operating systems in the [Supported platforms](https://www.zabbix.com/documentation/6.4/en/manual/config/items/itemtypes/zabbix_agent?hl=Zabbix%2Cagent#supported-platforms) section of the Zabbix agent guide in the official Zabbix documentation.

### 2. Configure checks \{#configure-checks}

1. Open the Zabbix agent configuration file `zabbix_agentd.conf` in a text editor.

2. Enable local computer checking. To do this, specify the IP address or host name of the Zabbix server:

   * in the **Server** parameter to enable passive checks of the local computer;
   * in the **ServerActive** parameter to enable active checks of the local computer.

3. To set the check frequency, specify the time interval in seconds in the `RefreshActiveChecks` parameter.

4. Exit the text editor, saving your changes.

<Formbricks />
