How to Monitor Linux VPS with Glances: Lightweight Web & Terminal Dashboard
Contabo High-Performance Cloud VPS
Massive 4 vCPU cores, 8GB RAM, and 32TB monthly traffic. Ideal for Linux developers.
Why Glances is Superior to Traditional Top and Htop
While classic command-line utilities like top and htop provide basic process lists, they fail to provide comprehensive visibility into network I/O, disk read/write throughput, file system capacity, and Docker container performance on a single screen. Glances is an open-source system monitoring tool written in Python that delivers an interactive terminal UI and a responsive web dashboard that streams live server metrics.
Step 1: Installing Glances via Official Package Manager
sudo apt update && sudo apt install -y glances python3-bottle
Step 2: Running Glances in Web Server Mode
Launch Glances as a background systemd service so you can monitor your server from any browser:
sudo nano /etc/systemd/system/glances.service
[Unit]
Description=Glances System Monitoring Web Server
After=network.target
[Service]
ExecStart=/usr/bin/glances -w -B 127.0.0.1 -p 61208
Restart=always
User=root
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now glances.service
Step 3: Securing Behind Nginx Reverse Proxy with Basic Auth
Bind Glances to port 61208 and secure it with Nginx HTTP Basic Authentication to prevent unauthorized viewers from inspecting system processes.
Editorial Verdict: Pros & Cons
What We Love (Pros)
- Real-time visual monitoring of system hardware with color-coded warning thresholds
- Native web server mode allows viewing server health inside your web browser
- Direct integration with Docker containers, showing individual container memory and CPU draw
Drawbacks (Cons)
- Web interface port 61208 must be secured behind Nginx authentication
Deploy Your Contabo Cloud Server
Includes 4 vCPU Cores, 8GB RAM, 50GB NVMe SSD, and 32TB Outbound Traffic.
Written by Alex Vance
Cloud Infrastructure Architect
Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.
Recommended Next Reads
Hostinger vs Contabo VPS (2026): Real Benchmark Test & In-Depth Comparison
A comprehensive, benchmark-driven comparison between Hostinger and Contabo VPS. We tested Geekbench CPU scores, NVMe I/O, network latency, and hPanel vs CLI.
Hostinger Review (2026): Is It Truly the Best Web Hosting for the Price?
We stress-tested Hostinger's Premium and Cloud Startup plans across 180 days. Read our honest review covering uptime, LiteSpeed speed tests, and renewal fees.