
🌐 Machine-translated from Russian. Show original
In this part:
A familiar picture
- Requests arrive via WhatsApp, Telegram, email, phone, and "in the corridor."
- Half is lost, and the other half is decided by whoever sees it first.
- The manager asks, "What is the IT department doing?" — there's no answer.
- The same printer problem is solved the fifth time because only one admin remembers the solution.
- Equipment accounting — an Excel file last updated during the previous inventory.
The helpdesk system solves this with one idea: every request is a request with a number, author, contractor, deadline, and history.
What helpdesk provides
| Without | system With | system
| --- | --- |
| 'I wrote yesterday, you did not reply' | request No. 1042, created at 09:14, accepted at 09:20 |
| Everything urgently | priority according to clear | rules
| No deadlines | SLA: accept in 30 minutes, resolve in 8 hours |
| Knowledge in your head | knowledge base and typical solutions |
| 'We work a lot' | report: 312 applications in a month and 94% on time |
| Technology in Excel | automatic inventory, history of each PC |
ITIL in simple terms
ITIL is a set of IT service management practices. It is entirely needed by large companies; a small IT department will need four ideas.
1. Incident and inquiry are different things
Read more
🌐 Machine-translated from Russian. Show original
In this part:
In simple terms
- PostgreSQL is a free open-source DBMS. It runs websites, CRM, 1C, portals, and analytics.
- In PostgreSQL terms**, a cluster** is a single server instance with a data directory and port (usually 5432). It can contain many databases.
- Role — a user or group. A role with
LOGIN rights is an account to connect.
- WAL (pre-write log) is a log of all changes. It contains recovery from failures, point-in-time backups, and replication.
Which version to install
| Version | Status as of November 2026 | Support up to |
|---|
| ** | 18** is relevant, we set it | November 2030 |
| 17 supported November | , 2029 |
| 16 | supported November | , 2028 |
| 15 supported November | , 2027 |
| 14 | last days of support | November 12, 2026 |
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Zabbix under load
- Zabbix proxy — collects data in a branch or segment and transmits it to the server. Relieves load and experiences connection interruptions (buffers data).
- Built-in server HA cluster (since version 6.0): several Zabbix servers, one active, the rest in reserve. In
zabbix_server.conf on each node — HANodeName=zbx1 / zbx2 and a shared DBHost. The database must be fault-tolerant itself (PostgreSQL replication).
- TimescaleDB is a PostgreSQL extension for history: faster queries and compression by many times. Scripts lie in
/usr/share/zabbix/sql-scripts/postgresql/timescaledb/.
- Intervals: do not poll everything every 10 seconds. Disks — every 5–15 minutes, inventory — once daily.
- The NVPS (new values per second) benchmark is in the Administration → Queue and on the Zabbix server health dashboard.
Prometheus under load
- Prometheus stores data locally, defaulting to 15 days. For long-term storage and fault tolerance —
remote_write in:
- VictoriaMetrics (docs.victoriametrics.com) — the simplest, most efficient for disk and memory, compatible with PromQL;
- Thanos or Grafana Mimir — for large distributed systems.
- Two identical Prometheuses for reliability + Alertmanager in a cluster of 2–3 nodes (it will collapse the duplicate itself).
- Watch for cardinality: label with user or order ID = millions of rows and fallen Prometheus.
Logi
Read more
🌐 Machine-translated from Russian. Show original
In this part:
What's free forever
The entire stack in this series — KVM, QEMU, libvirt, Cockpit, virt-manager, cloud-init — is free software without licenses for kernels, sockets, and VMs. You have to pay for support, convenience, and time — not for the right to use it.
Paid distribution options
| Product | What gives | Free option |
|---|
| Ubuntu Pro | security updates for the entire universe repository, support for versions up to 10–12 years, Livepatch kernels, CIS/STIG profiles, | free for personal use on up to 5 machines |
| Ubuntu Pro + Support | Canonical | technical support — |
| Red Hat Enterprise Linux | certified OS, support, OpenShift Virtualization, | Developer Subscription — up to 16 systems are free for developers |
| AlmaLinux / Rocky Linux | binary compatible with RHEL | completely free; support is sold by partners |
| SUSE Linux Enterprise | support, Harvester (HCI on KVM) | openSUSE Leap |
Virtualization platforms on KVM
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Who is responsible for what
| Problem | Who | Why |
|---|
| Switches, routers, UPS, printers, | Zabbix | the best SNMP templates and autodiscover |
| Windows, AD, 1C servers, | Zabbix | agent 2, ready-made templates, convenient without programming |
| "Hardware" servers (IPMI, RAID, SMART) | Zabbix | manufacturer templates, inventory, |
| Linux servers | Prometheus (node_exporter) or Zabbix | choose one to avoid duplicate |
| Applications, APIs, queues, containers, | Prometheus | out-of-the-box metrics, PromQL, service discovery, |
| Websites and certificates | Prometheus (blackbox) or Zabbix (web scripts) | scenarios with more convenient account login in Zabbix |
| Grafana dashboards | one screen for all sources |
| Business metrics from | Grafana databases | direct SQL to PostgreSQL / MySQL / MS SQL |
Bundle 1. Grafana reads both systems
Done in part 5: the attendant looks at one dashboard, and the data stays where it's most convenient to collect.
Bundle 2. Zabbix takes Prometheus metrics
If the app already has /metrics, but you want triggers and Zabbix escalations:
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Processor
CPU model. host-passthrough gives the VM all host processor instructions — maximum speed. If VMs will migrate between different servers — use the common model (host-model or named one, for example EPYC, Skylake-Server).
Core binding (CPU pinning) for heavy VMs (DBMS, 1C):
lscpu -e # ядра, NUMA-узлы и потоки
virsh vcpupin db01 0 4
virsh vcpupin db01 1 5
virsh emulatorpin db01 0-1
To secure it permanently — the section <cputune> in virsh edit. Rules: keep the VM in one NUMA node, do not give it the cores on which the host runs, and do not share the "threads" of one kernel among different heavy VMs.
Memory
- Hugepages (2 MB or 1 GB pages) reduce overhead for large VMs:
echo 'vm.nr_hugepages = 8192' | sudo tee /etc/sysctl.d/90-hugepages.conf # 8192 × 2 МБ = 16 ГБ
sudo sysctl --system
<memoryBacking><hugepages/></memoryBacking>
- Ballooning allows the host to take unused memory from the VM — convenient for test benches but not for databases.
- KSM (Identical Page Merging) saves memory for many identical VMs but consumes the processor and theoretically opens attacks through third-party channels — enable it consciously.
Discs
virtio-scsi instead of virtio-blk — if you need many drives and TRIM.
- IOThreads offload the main VM flow during intensive input-output:
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Step 1. Installation from the official repository
Manufacturer's instructions: grafana.com/docs/.../installation/debian, download page: grafana.com/grafana/download.
sudo apt install -y apt-transport-https wget gnupg
sudo mkdir -p /etc/apt/keyrings
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg >/dev/null
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt update && sudo apt install -y grafana
sudo systemctl enable --now grafana-server
sudo ufw allow from 192.168.1.0/24 to any port 3000 proto tcp
Open http://192.168.1.11:3000, admin / admin login — Grafana will immediately ask you to change your password.
💡 The free version is Grafana OSS (grafana). The grafana-enterprise package is also free without a license and works like OSS, with paid features included with a license key.
Step 2. Source Prometheus
Connections → Data sources → Add → Prometheus → URL http://127.0.0.1:9090 → Save & test.
Step 3. Source: Zabbix
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Template from a cloud image
Installing every VM with an ISO is a long time. Ubuntu releases ready-made cloud images that are configured at first launch via cloud-init: name, user, SSH key, network, packages.
cd /var/lib/libvirt/images
sudo wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
sudo qemu-img info noble-server-cloudimg-amd64.img
Image catalog: cloud-images.ubuntu.com/noble/current. Analogs exist in Debian (cloud.debian.org/images/cloud) and AlmaLinux.
Step 1. VM disk over the template
sudo qemu-img create -f qcow2 -F qcow2 \
-b /var/lib/libvirt/images/noble-server-cloudimg-amd64.img \
/var/lib/libvirt/images/app01.qcow2 30G
The new disk stores only differences from the base image — created instantly. The base image cannot be changed or deleted after that.
Step 2. User-data file
#cloud-config
hostname: app01
timezone: Asia/Almaty
users:
- name: ivan
groups: [sudo]
shell: /bin/bash
sudo: "ALL=(ALL) NOPASSWD:ALL"
ssh_authorized_keys:
- ssh-ed25519 AAAA...ваш_публичный_ключ ivan@laptop
package_update: true
packages: [qemu-guest-agent, htop]
runcmd:
- systemctl enable --now qemu-guest-agent
Step 3. Launch
Read more
🌐 Machine-translated from Russian. Show original
In this part:
How Prometheus works
- The object outputs metrics over HTTP in text format (
/metrics) — this is done by the exporter or the application itself.
- Prometheus schedules (usually every 15–30 seconds) to poll all targets and saves data.
- Rules check conditions and send triggered alerts to Alertmanager.
- Alertmanager groups, suppresses duplicates, and sends notifications.
Downloads: prometheus.io/download, GitHub releases: node_exporter, blackbox_exporter, alertmanager, windows_exporter, snmp_exporter.
💡 Ubuntu has a prometheus package via apt, but its version is noticeably older. Below are the official binaries — this way you will have the current version.
Step 1. Installing Prometheus
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Network options
| Mode | How it works | When to use |
|---|
NAT (default) | VM behind the host "router," network 192.168.122.0/24 | tests, VMs that do not require incoming access |
| Bridge | VM — full participants of the local network | servers for the office: 1C, files, AD, |
| Bridge + VLAN | VMs in different VLANs over a single cable | network separation: servers, video surveillance, guests, |
| Isolated | VMs see each other only | laboratories, test benches, |
| macvtap | VM directly on a physical port without a bridge | quickly set up, but the host and VM do not see each other |
Step 1. Bridge over netplan
Find out the name of the network card: ip -br link (for example, eno1). Save a copy of the current file and replace the contents of /etc/netplan/50-cloud-init.yaml (your file name may differ):
network:
version: 2
ethernets:
eno1:
dhcp4: false
bridges:
br0:
interfaces: [eno1]
addresses: [192.168.1.10/24]
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [192.168.1.1, 1.1.1.1]
parameters:
stp: false
forward-delay: 0
sudo chmod 600 /etc/netplan/*.yaml
sudo netplan try # если связь пропадет — через 120 с вернется старая настройка
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Basic concepts
| The term | What is |
|---|
| Host | monitoring object: server, switch, site, |
| Data item | one metric: CPU load, free space in C: |
| Trigger | problem condition: "less than 10% space" |
| Template | a set of elements, triggers, and charts that hangs on nodes |
| Action | what to do about the problem: to whom and how to report |
| Discovery (LLD) | automatic search for disks, interfaces, services, |
Rule: do not create elements manually on nodes — use templates.
Linux agent
On each server (after connecting the repository, as in part 2):
sudo apt install -y zabbix-agent2
sudo nano /etc/zabbix/zabbix_agent2.conf
Server=192.168.1.11
ServerActive=192.168.1.11
Hostname=web01
sudo systemctl restart zabbix-agent2 && sudo systemctl enable zabbix-agent2
sudo ufw allow from 192.168.1.11 to any port 10050 proto tcp
In the interface: Data collection → Hosts → Create host → web01name, group Linux servers, Linux by Zabbix agent template, Agent interface from IP server.
Windows agent
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Step 1. Checking the processor
egrep -c '(vmx|svm)' /proc/cpuinfo # больше 0 — виртуализация есть
sudo apt install -y cpu-checker
kvm-ok # ожидаем: KVM acceleration can be used
If kvm-ok swears — return to the BIOS and enable VT-x / SVM (part 1).
Step 2. Installing KVM and libvirt
sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients virtinst \
bridge-utils ovmf qemu-guest-agent
sudo usermod -aG libvirt,kvm $USER
Log out and log back in via SSH to have the groups applied. Verification:
virsh list --all # пустой список без ошибок — все хорошо
virsh net-list --all # сеть default должна быть active
If the network default is inactive: virsh net-start default && virsh net-autostart default.
Step 3. Cockpit web interface
Cockpit is a free web server dashboard: uploads, logs, services, updates, and virtual machines.
sudo apt install -y cockpit cockpit-machines
sudo ufw allow from 192.168.1.0/24 to any port 9090 proto tcp
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Which version to take
Zabbix releases LTS versions (5 years of support) and intermediate ones. For work, use LTS: currently it's 8.0 LTS. If you want the most tested version — 7.0 LTS (commands are the same, the repository path number changes).
Where to download:
Step 1. Connecting the Zabbix repository
wget https://repo.zabbix.com/zabbix/8.0/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_8.0+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest_8.0+ubuntu24.04_all.deb
sudo apt update
Step 2. Installing the server, web interface, and agent
sudo apt install -y postgresql \
zabbix-server-pgsql zabbix-frontend-php php8.3-pgsql \
zabbix-nginx-conf zabbix-sql-scripts zabbix-agent2
Step 3. Creating the database
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Step-by-step installation
Boot from a flash drive (the boot menu is usually F11, F12, F8, or Esc when powered on) → Try or Install Ubuntu Server.
- Language — English. Error messages in English are easier to find in search.
- Layout — English (US).
- Installation type — Ubuntu Server (not minimized).
- Network — select the wired interface → Edit IPv4 → Manual:
- Subnet:
192.168.1.0/24
- Address:
192.168.1.10
- Gateway:
192.168.1.1
- Name servers:
192.168.1.1,1.1.1.1
- Proxy — empty, Mirror — leave the suggestion.
- Disk — Use an entire disk, check Set up this disk as an LVM group. Important: by default, the installer gives the root only part of the space. On the Storage configuration screen, select
ubuntu-lv → Edit → set the size larger (for example, 100 GB for the system; the rest will be left for VM in part 4).
- Profile — name, server name (
kvm01), your login (not admin and not root), strong password.
- Ubuntu Pro — Skip for now (let's return in part 7).
- SSH — ✅ Install OpenSSH server. If you have a key on GitHub, you can import it immediately.
- Featured snaps — don't choose anything.
- Wait for Reboot Now, remove the flash drive.
First SSH login
From your computer:
ssh ivan@192.168.1.10
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Why monitor
Without monitoring, you will learn about the problem from users: "1C won't open," "the site is down," "the disk has expired." With monitoring — before users, and often before the problem occurs: the disk is 85% full, SMART shows errors, and the certificate expires after 14 days.
What to monitor
| Level | Examples |
|---|
| Availability | whether the server is pinged, if the site is opened, whether the 1C port (1541) responds |
| Hardware | temperature, drives (SMART, RAID), power supplies, UPS |
| OS | processor, memory, free space, disk load, network, |
| Network | loading of switch and router ports, errors, VPN tunnels, |
| Services | services are running, mail queue, database response time, |
| Applications | 5xx errors, response time, number of orders, queue length, |
| Business metrics | hourly pay, registrations, cancellations, |
| Deadlines | SSL certificates, domains, licenses, digital signatures, |
There are three types of data: metrics (numbers in time), logs (text events), traces (request path through services). This series is mainly about metrics and alerts, logs are in part 7.
How data is collected
Read more
🌐 Machine-translated from Russian. Show original
In this part:
In simple terms
- A server is a computer that does something for others around the clock: stores files, maintains the website, the 1C database, and mail.
- Linux server — a server with the Linux operating system. Free, stable, without a graphical desktop: managed by network commands.
- A virtual machine (VM) is a "computer within a computer": with its own disk, memory, and OS. On one physical server, you can keep a dozen VMs — Windows, Linux, anything.
- A hypervisor is a program that launches a VM and divides the processor, memory, and disks among them.
- KVM is a hypervisor built directly into the Linux kernel. It is free, running Proxmox, OpenStack, and many clouds.
Along with KVM, the following are always included:
| Component | What does |
|---|
| KVM (kernel module) | uses hardware virtualization of the |
| QEMU | emulates VM hardware: disks, network cards, BIOS, |
| libvirt | unified VM management: virshcommands, API, rights, |
| virt-manager / Cockpit | graphical and web interface over libvirt |
Which iron is suitable
An old PC or laptop is enough for studying; for work—a server or a reliable PC.
Read more
🌐 Machine-translated from Russian. Show original
⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.
In this part:
Site-to-site IPsec
The most convenient VPN wizard → IPsec Wizard (Site-to-Site type) is most convenient for office communication:
- Remote gateway — an external IP or DDNS name of the second office.
- Authentication is a shared key (long and random) or certificates.
- Local and remote subnets are non-overlapping (addressing plan).
- The wizard will create the tunnel, routes, and policies; check that policies allow only the necessary traffic between offices.
If the other end is not FortiGate (MikroTik, another brand), agree on phase 1 and 2 parameters: encryption algorithms, DH groups, key lifetime — they must match on both sides. For MikroTik, see the series.
Remote employee access
FortiGate supports remote access via IPsec (dial-up) and the FortiClient client. Recommendations:
Read more
🌐 Machine-translated from Russian. Show original
⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.
In this part:
What is FortiGate
FortiGate is a next-generation firewall (NGFW) from Fortinet: routing, firewall policies, NAT, VPN, and security profiles (antivirus, IPS, web filtering, application control). Managed via web interface and CLI; for multiple devices — centrally via FortiManager.
First connection
- Connect to the management port (default address is specified in the model documentation).
- Change the administrator password, set the device name and time zone, update FortiOS to the recommended version.
- Restrict administrative access:
config system interface
edit "port1"
set ip 192.168.99.1 255.255.255.0
set allowaccess ping https ssh
next
edit "wan1"
set mode dhcp
set allowaccess ping
next
end
⚠️ Do not allow HTTPS and SSH administration on the WAN interface. If external access is needed — only via VPN or from trusted addresses (Trusted Hosts at the administrator account).
Interfaces and VLANs
config system interface
edit "vlan10"
set vdom "root"
set interface "port2"
set vlanid 10
set ip 192.168.10.1 255.255.255.0
set allowaccess ping
next
end
Read more
🌐 Machine-translated from Russian. Show original
⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.
In this part:
Huawei VRP: modes
Huawei's command line (VRP) differs from Cisco's:
| Action | Cisco | Huawei VRP |
|---|
| Configuration mode | configure terminal | system-view |
| Show configuration | show running-config | display current-configuration |
| Go above | exit | quit |
| Save | write | save |
| Remove the | no ... | undo ... |
Huawei: VLAN, access, and trunk
system-view
sysname SW-ACCESS-02
vlan batch 10 20 30 40 99
interface GigabitEthernet0/0/5
description PC-Office-05
port link-type access
port default vlan 10
quit
interface GigabitEthernet0/0/24
description Uplink
port link-type trunk
port trunk allow-pass vlan 10 20 30 40 99
quit
interface Vlanif99
ip address 192.168.99.12 255.255.255.0
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.99.1
Huawei: SSH access
stelnet server enable
aaa
local-user admin password irreversible-cipher <сложный-пароль>
local-user admin service-type ssh
local-user admin privilege level 15
quit
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
The AAA and SSH command sets differ between VRP versions — check the documentation for your model.
Huawei: useful displays
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Why choose a second provider
If the office has a cash register, 1C over the internet, IP telephony, or cloud services, a break in one channel stops working. The second provider (another operator, another physical channel — for example, fiber + mobile internet) solves the problem.
Simple option: distance and check-gateway
/ip route add dst-address=0.0.0.0/0 gateway=IP_шлюза_ISP1 distance=1 check-gateway=ping
/ip route add dst-address=0.0.0.0/0 gateway=IP_шлюза_ISP2 distance=2 check-gateway=ping
NAT — for both interfaces (both in the WAN list, masquerade rule from part 1.
Limitation: the check-gateway only checks the availability of the provider's gateway. If the gateway responds but there is no further internet — no switching will occur.
Reliable option: recursive routes
We check the availability of an external address through a specific provider:
/ip route add dst-address=1.1.1.1/32 gateway=IP_шлюза_ISP1 scope=10
/ip route add dst-address=8.8.8.8/32 gateway=IP_шлюза_ISP2 scope=10
/ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1 distance=1 check-gateway=ping target-scope=11
/ip route add dst-address=0.0.0.0/0 gateway=8.8.8.8 distance=2 check-gateway=ping target-scope=11
Read more