brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: glances -w turns Glances into a web dashboard

Monitoring
~/tips/tip-monitoring-glances-web-mode

glances -w

Starts Glances as a web server so you can check a machine from any browser.

Glances is the system monitor I keep running on my Unraid server, and most people know it as a terminal app. Start it with one flag and it serves the same overview as a web page, so you can check a box from your phone without SSH.

glances -w

According to the Glances quickstart, you then open http://<server>:61208 in a browser. The docs note that web server mode needs the FastAPI library, so a minimal install may ask for an extra package.

Two options I find useful. -B binds it to one address, for example a Tailscale address only, instead of every network interface. And --disable-webui keeps only the REST API, which is handy when something else, like Home Assistant, reads the numbers and you don’t need the page.

glances -w -B 127.0.0.1

That example listens only on localhost, behind a reverse proxy that does the login.

Caveat: don’t put this page on the internet as is. Glances shows your processes, disks and network, which is a lot to give away. Bind it to a private interface, use --password, or keep it behind a proxy with authentication. The quickstart also tells you to set xmlrpc_allowed_hosts for any deployment on a non-loopback interface.

Further reading: Glances docs: Quickstart, Glances docs: Command reference

Going deeper: Keep a domain pointed at your home with Cloudflare DDNS on Unraid

More Monitoring tips sudo apt install vnstat sudo apt install sysstat sudo apt install nethogs All Monitoring tips (4) All topics

Link