Skip to main content
Websites. Growth. Infrastructure. One team.Let’s build your next chapter

Hosting & Server Management

How to Monitor Multiple Linux Servers Using Zabbix: Complete Setup Guide

Deploy enterprise monitoring across multiple Linux servers with Zabbix 7. Learn active agent configuration, encryption, and automated discovery.

Ideas and expertise behind your next move.

Managing multiple production Linux servers requires proactive, automated telemetry. Without real-time visibility into CPU stolen time, memory exhaustion, disk I/O bottlenecks, and network saturation, minor anomalies rapidly escalate into catastrophic service outages. Zabbix provides an enterprise-grade, open-source monitoring and alerting platform capable of tracking thousands of distributed metrics with zero per-agent licensing fees.

Zabbix Architecture: Server, Proxy, and Agents

Zabbix operates on a distributed modular architecture:

  • Zabbix Server: The central engine that polls data, evaluates trigger expressions, manages alerting logic, and stores historical trends in a relational database like PostgreSQL or TimescaleDB.
  • Zabbix Proxy: An intermediary collector deployed in remote datacenters or cloud regions. Proxies gather local server metrics, buffer data during network outages, and forward encrypted batches back to the central server, dramatically reducing public bandwidth and firewall complexity.
  • Zabbix Agent 2: A high-performance, modern Go-based agent running on target Linux hosts. It supports native plugins, low CPU overhead, and active push monitoring.

Deploying Zabbix Agent 2 on Target Linux Nodes

Install and configure the lightweight Agent 2 daemon on your production hosts:

# Install Zabbix repository and Agent 2 on Ubuntu 24.04
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest_7.0+ubuntu24.04_all.deb
sudo apt-get update && sudo apt-get install -y zabbix-agent2

# Configure secure active reporting in /etc/zabbix/zabbix_agent2.conf
Server=zabbix-master.brandmymedia.com
ServerActive=zabbix-master.brandmymedia.com
Hostname=prod-web-node-01.brandmymedia.com
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=PSK_PROD_NODE_01
TLSPSKFile=/etc/zabbix/zabbix_agent2.psk

Generate a cryptographically random Pre-Shared Key (PSK) using OpenSSL to ensure end-to-end encryption for all host metrics:

openssl rand -hex 32 | sudo tee /etc/zabbix/zabbix_agent2.psk
sudo chmod 400 /etc/zabbix/zabbix_agent2.psk
sudo chown zabbix:zabbix /etc/zabbix/zabbix_agent2.psk
sudo systemctl enable --now zabbix-agent2

Automated Network Discovery and LLD Templates

Manual host provisioning fails at scale. Zabbix Low-Level Discovery (LLD) automatically detects network interfaces, mounted filesystems, and running daemons (such as Nginx, MySQL, and Docker containers). When a DevOps engineer mounts a new NVMe partition or spins up a Redis instance, Zabbix detects the entity and applies monitoring thresholds automatically.

Frequently Asked Questions

What is the difference between Passive and Active Zabbix checks?

In passive checks, the central Zabbix server connects inbound to the agent on port 10050. In active checks, the agent connects outbound to the server or proxy on port 10051, buffering metrics locally if the network fails. Active checks eliminate the need to open incoming firewall ports on production nodes.

Can Zabbix monitor Docker containers natively?

Yes. Zabbix Agent 2 includes a native Docker plugin that connects directly to /var/run/docker.sock to monitor CPU, memory, and container status without requiring external export daemons.

Conclusion

Automating infrastructure monitoring with Zabbix guarantees 24/7 visibility into server health. Brandmymedia deploys, tunes, and monitors high-availability Zabbix clusters for enterprise hosting clients worldwide.

Related guides

Browse all articles →
Chat on WhatsApp

Chat with Brandmymedia

Choose a topic to open WhatsApp.