NewCode CLOUD — 20% off your first month on all cloud VPSClaim

How to Set Up Zabbix Network Monitoring on Hong Kong VPS: Enterprise Server Monitoring for Asia (2026)

· 3 min read

Zabbix is the enterprise-grade open-source monitoring platform — deployed by thousands of organizations globally for infrastructure monitoring, network device monitoring, application performance monitoring, and complex alerting workflows. While Grafana + Prometheus (covered earlier) excels for metrics visualisation, Zabbix provides deeper infrastructure monitoring with built-in agent-based collection, SNMP support for network devices, and enterprise features like trigger-based automation.


Zabbix vs Prometheus + Grafana

Feature Zabbix Prometheus + Grafana
Setup complexity Moderate (web installer) Moderate (manual config)
Agent-based monitoring ✅ Native Zabbix agent Via exporters
SNMP (network devices) ✅ Native support Via SNMP exporter
Auto-discovery ✅ Network auto-discovery Manual configuration
Trigger-based automation ✅ Built-in Limited (Alertmanager)
Dashboard quality Functional Excellent (Grafana)
Enterprise features Extensive Via add-ons

Step 1: Deploy Zabbix with Docker Compose

mkdir -p /home/deploy/zabbix
cd /home/deploy/zabbix
nano docker-compose.yml
version: '3.8'

services:
  zabbix-db:
    image: mysql:8.0
    container_name: zabbix_db
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: zabbix
      MYSQL_USER: zabbix
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
    volumes:
      - zabbix_db_data:/var/lib/mysql
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --default-authentication-plugin=mysql_native_password

  zabbix-server:
    image: zabbix/zabbix-server-mysql:ubuntu-7.0-latest
    container_name: zabbix_server
    restart: unless-stopped
    ports:
      - "10051:10051"    # Zabbix trapper port (for agents)
    depends_on:
      - zabbix-db
    environment:
      DB_SERVER_HOST: zabbix-db
      MYSQL_DATABASE: zabbix
      MYSQL_USER: zabbix
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
    volumes:
      - zabbix_server_data:/var/lib/zabbix

  zabbix-web:
    image: zabbix/zabbix-web-nginx-mysql:ubuntu-7.0-latest
    container_name: zabbix_web
    restart: unless-stopped
    ports:
      - "127.0.0.1:8888:8080"
    depends_on:
      - zabbix-db
      - zabbix-server
    environment:
      ZBX_SERVER_HOST: zabbix-server
      DB_SERVER_HOST: zabbix-db
      MYSQL_DATABASE: zabbix
      MYSQL_USER: zabbix
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      PHP_TZ: Asia/Hong_Kong
      ZBX_SERVER_NAME: HK Infrastructure Monitor

  zabbix-agent:
    image: zabbix/zabbix-agent2:ubuntu-7.0-latest
    container_name: zabbix_agent
    restart: unless-stopped
    ports:
      - "10050:10050"
    environment:
      ZBX_HOSTNAME: hk-monitoring-vps
      ZBX_SERVER_HOST: zabbix-server
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run

volumes:
  zabbix_db_data:
  zabbix_server_data:
nano .env
MYSQL_PASSWORD=strong_zabbix_password
MYSQL_ROOT_PASSWORD=strong_root_password
docker compose up -d
# First startup takes 2-3 minutes
docker compose logs -f zabbix-web

Step 2: Nginx Configuration

nano /etc/nginx/sites-available/zabbix
server {
    listen 443 ssl http2;
    server_name monitor.yourdomain.com;

    ssl_certificate /etc/letsencrypt/live/monitor.yourdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/monitor.yourdomain.com/privkey.pem;

    # Restrict to admin IPs
    allow YOUR_HOME_IP;
    deny all;

    location / {
        proxy_pass http://127.0.0.1:8888;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 300s;
    }
}

Step 3: Initial Configuration

  1. Access https://monitor.yourdomain.com
  2. Default credentials: Admin / zabbix — change immediately
  3. Configuration → Hosts → verify the local host (zabbix-agent) shows as Available

Step 4: Install Zabbix Agent on Remote VPS Instances

# On each VPS you want to monitor:
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu22.04_all.deb
dpkg -i zabbix-release_7.0-1+ubuntu22.04_all.deb
apt update && apt install -y zabbix-agent2

nano /etc/zabbix/zabbix_agent2.conf
# Configure agent to report to your monitoring VPS
Server=MONITORING_VPS_IP
ServerActive=MONITORING_VPS_IP
Hostname=hk-app-server-01   # Unique name for each server
systemctl enable zabbix-agent2
systemctl start zabbix-agent2

# Open Zabbix agent port FROM monitoring VPS only
ufw allow from MONITORING_VPS_IP to any port 10050/tcp

In Zabbix web interface → Configuration → Hosts → Create Host → add each remote VPS with its IP and the “Linux by Zabbix agent” template.


Step 5: Configure Telegram Alerts

  1. Administration → Media types → Telegram
  2. Enter your Telegram bot token (from @BotFather)
  3. Users → Admin → Media → Add → Telegram → enter your chat ID
  4. Configuration → Actions → Trigger actions → Create action with Telegram notification

Conclusion

Zabbix on a Hong Kong VPS provides enterprise-grade infrastructure monitoring for your Asia-Pacific server fleet — with network auto-discovery, SNMP support for network devices, agent-based deep monitoring, and flexible alerting that exceeds the capabilities of simpler monitoring stacks.

Deploy your monitoring infrastructure on Server.HK’s Hong Kong VPS plans — a 4 GB RAM VPS handles Zabbix monitoring for 20–50 hosts comfortably alongside its other responsibilities.


Frequently Asked Questions

How many servers can Zabbix monitor on a Hong Kong VPS?

Zabbix scales from small (5–10 hosts on a 2 GB RAM VPS) to very large (thousands of hosts on dedicated hardware). For the Docker Compose deployment in this guide, a 4 GB RAM VPS comfortably monitors 20–50 hosts with standard monitoring intervals. Increase MySQL memory allocation and Zabbix server parameters as the monitored fleet grows.

Can Zabbix monitor network devices (switches, routers) via SNMP?

Yes. Zabbix has native SNMP support — add network devices as hosts in Zabbix and apply SNMP-based templates (Cisco, HP, Juniper, and generic SNMP templates are available in Zabbix’s template library). No additional exporter software is needed on the network device.

Is there a difference between Zabbix Agent and Zabbix Agent2?

Zabbix Agent2 is the modern successor — written in Go, with native support for concurrent checks, loadable plugins, and better performance for high check frequencies. For new deployments, install Agent2. Agent (original) is maintained for compatibility with older installations but new features are developed only for Agent2.

Related articles

More in VPS & ServersServer setup guides