How to Set Up Beszel for Lightweight Home Server Monitoring

17 min read

,
Beszel dashboard listing many monitored systems with CPU, memory, disk and network bars beside a system page with CPU, Docker CPU, memory and Docker memory charts

Set up Beszel with Docker to see CPU, memory, disk and container usage across your home servers in one dashboard. It’s useful when a server seems slow but you can’t tell whether a container is eating memory or a disk is filling up. For a closer look at drive health and SMART history, use Scrutiny alongside it.

Run one Beszel hub for the dashboard and install an agent on each machine you want to watch. Start with the machine running Docker, then add a Pi, NAS or other supported host as you need it. The hub keeps the history and can alert you through services such as ntfy, Telegram or email. These steps follow Beszel 0.21.2.

Diagram of how Beszel works: an agent on each machine reports system stats and per-container Docker usage to one hub with a web dashboard that keeps the history, and the hub sends alerts to ntfy, Telegram, Discord, email and more than 20 other services. You can drop an agent on a mini PC, a Raspberry Pi, a NAS, a VPS or a Windows desktop
Image: Techzei

What Beszel monitors

Beszel has two parts. The hub is a web application built on PocketBase. It stores history, shows the dashboard and sends notifications. The agent runs on each system you want to watch and collects the numbers. One hub can watch many agents, and the hub machine can run its own agent too.

Beszel All Systems table showing a localhost system with CPU, memory, disk, GPU, load average, network, temperature, systemd services, uptime and agent version columns
The All Systems dashboard puts CPU, RAM and disk use for each host in one row. Image: Beszel

What each agent can report depends on the host and the permissions you give it.

  • CPU, memory and load average for the host, with swap and ZFS ARC included in memory.
  • Disk usage and disk I/O for the root disk, plus any extra disks or partitions you point it at.
  • Network usage for the host and for each container.
  • Docker and Podman containers: status plus CPU, memory and network history for every running container.
  • Temperatures, fan speeds and battery charge from host sensors where the hardware exposes them.
  • GPU metrics on supported hardware. Some GPUs need a different agent image or extra setup.
  • S.M.A.R.T. disk health, Linux mdraid array health and eMMC wear, when the agent has permission to read the drives.
  • ZFS pools with capacity, health, I/O, scrub status and per-dataset usage, and Btrfs filesystems as storage pools.

The hub and agent talk in one of two ways. In WebSocket mode the agent dials out to the hub URL and authenticates with a token, so the agent does not need any open inbound port. In SSH mode the hub connects to the agent on port 45876 using a key the hub generated on first start. The agent’s SSH server only accepts that key and does not offer a shell, so it cannot be used to run commands. If you set up an agent from the hub’s own instructions, it is configured for both.

Beszel vs Uptime Kuma vs Netdata

Use Beszel to see why a host is struggling. Use Uptime Kuma for service availability or a push check from a backup job. Netdata is useful when you need per-second metrics or more detailed application collectors.

BeszelUptime KumaNetdata
Main question it answersHow are my machines and containers using CPU, memory, disk and temperature over time?Is this service up, and how fast does it respond?What is every metric on every system doing, second by second?
How it collects dataAgent on each machine reports to a central hubHub probes URLs, ports and hosts, or receives push pingsAgent on each machine collects per-second metrics; optional Parents and Netdata Cloud combine them
Docker statsPer-container CPU, memory and network historyCan check whether a container is runningYes, plus far more application and system collectors
Disk healthS.M.A.R.T., mdraid, ZFS and Btrfs pool healthNoYes, including S.M.A.R.T. and NVMe
AlertsThreshold alerts per system through Shoutrrr URLs and emailUp or down alerts through many notification servicesAlerting with ML anomaly detection on every metric
Best fitHome labs and small fleets that want history and alerts without tuningWatching websites, APIs and backup jobs from outsideLarge or busy setups that need deep, high-resolution observability
Comparison of Beszel, Uptime Kuma and Netdata. Beszel answers how machines and containers use CPU, memory, disk and temperature over time, with an agent reporting to a central hub, and covers S.M.A.R.T., mdraid, ZFS and Btrfs pool health; best for home labs and small fleets that want history and alerts without tuning. Uptime Kuma answers whether a service is up and how fast it responds, by probing URLs, ports and hosts or receiving push pings, with no disk health; best for watching websites, APIs and backup jobs from outside. Netdata answers what every metric is doing second by second, with per-second agents and optional Parents or Netdata Cloud, including S.M.A.R.T. and NVMe; best for large or busy setups that need deep observability. For a typical home server, Beszel and Uptime Kuma sit well side by side; Beszel does not replace Uptime Kuma's status pages or push monitors
Image: Techzei

Before you start

  • A machine for the hub. Any always-on Linux box with Docker and Docker Compose works. The hub does not need much, so the mini PC or Raspberry Pi that already runs your containers can usually host it. The hub also ships as a single binary if you prefer not to use Docker.
  • Docker on each machine you want to monitor, or the binary agent. The binary agent installs on Linux and FreeBSD with a script, on macOS and Linux through Homebrew, and on Windows through WinGet or Scoop.
  • Two ports. The hub’s web interface listens on 8090. Agents listen on 45876 for SSH mode. In WebSocket mode the agent only needs to reach the hub on 8090 (or whatever your reverse proxy exposes).
  • A notification service if you want alerts on your phone. ntfy, Telegram, Discord, Gotify and Pushover all work.

If you are still choosing hardware or an operating system for the box, our home server and NAS beginner’s guide covers the groundwork. Rootless Docker and Podman are worth a warning here: the project says rootless containers can report container stats with extra setup, but temperatures, fans, GPU, ZFS, S.M.A.R.T. and systemd services may be missing. If you want those, run the binary agent as a systemd service on that machine.

Step 1: Start the Beszel hub with Docker Compose

The official compose file below runs the hub and a local agent together. The two containers share a folder called beszel_socket, so the hub can reach the agent on the same machine through a unix socket. That matters because localhost does not work between the two containers: they sit on different networks.

mkdir beszel
cd beszel
nano docker-compose.yml

Paste this into the Compose file. Start only the hub for now, then use its dashboard to get the agent credentials in Step 2.

services:
  beszel:
    image: henrygd/beszel:latest
    container_name: beszel
    restart: unless-stopped
    environment:
      APP_URL: http://localhost:8090
    ports:
      - 8090:8090
    volumes:
      - ./beszel_data:/beszel_data
      - ./beszel_socket:/beszel_socket

  beszel-agent:
    image: henrygd/beszel-agent:latest
    container_name: beszel-agent
    restart: unless-stopped
    network_mode: host
    volumes:
      - ./beszel_agent_data:/var/lib/beszel-agent
      - ./beszel_socket:/beszel_socket
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      LISTEN: /beszel_socket/beszel.sock
      HUB_URL: http://localhost:8090
      TOKEN: <token>
      KEY: "<key>"

Keep port 8090 on your LAN. Change APP_URL to the address you use to open the hub, such as http://192.168.1.20:8090 or https://beszel.example.com. Beszel uses it for links in notifications and for the agent setup snippets it generates, so a wrong value here shows up later as broken links. Then start the hub:

docker compose up -d beszel

The agent uses network_mode: host to see the host’s interfaces and measure bandwidth. The Docker socket supplies container stats. The :ro mount flag does not restrict Docker API calls, so only give a trusted agent direct access. For tighter control, use a Docker socket proxy that filters API requests. All hub data, including users, systems, history and settings, lives in ./beszel_data.

Step 2: Create the admin account and add the local system

Open http://your-server-ip:8090 in a browser. On first visit Beszel asks you to create an account, and that first user becomes the admin. Then click Add System in the top right corner.

Beszel Add System dialog on the Docker tab with Name, Host / IP set to /beszel_socket/beszel.sock, Public Key and Token fields, and Copy docker compose and Add System buttons
For the local agent, enter the Unix socket path in Host / IP. Image: Beszel
  • Name: whatever you want to see on the dashboard, such as homelab.
  • Host / IP: for the local agent from Step 1, enter the socket path /beszel_socket/beszel.sock instead of an IP address.
  • Public Key and Token: copy both. Do not click Add System yet.

Back in docker-compose.yml, paste the public key into KEY (keep the quotes) and the token into TOKEN, then apply the change:

docker compose up -d

Now click Add System in the dialog. The new row should turn green within a few seconds. If it turns red, jump to the troubleshooting table near the end.

Step 3: Add your other machines

Every other machine needs its own agent. The quickest way is to let the hub write the config for you. Click Add System again, give the machine a name, enter its IP address in Host / IP and keep port 45876. The dialog has two tabs: Docker, with a button to copy a ready-made compose file or a docker run command, and Binary, with a Linux install command plus Homebrew and Windows commands in the drop-down.

Two Beszel Add New System dialogs side by side, one on the Docker tab with Copy docker compose and Copy docker run options, and one on the Binary tab with Copy Linux command, Homebrew command, Windows command and Manual setup instructions
The Docker and Binary tabs generate setup instructions for the selected machine. Image: Beszel

For a Docker host, the compose file the hub generates looks like this, with your real key, token and hub URL filled in:

services:
  beszel-agent:
    image: henrygd/beszel-agent
    container_name: beszel-agent
    restart: unless-stopped
    network_mode: host
    volumes:
      - ./beszel_agent_data:/var/lib/beszel-agent
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      LISTEN: 45876
      KEY: "<public key>"
      HUB_URL: "http://192.168.1.20:8090"
      TOKEN: "<token>"

Save it in its own folder on that machine, run docker compose up -d, then click Add System in the hub.

On a Linux machine without Docker, use the install script instead. It needs root to create a beszel user and a service, but the agent itself does not run as root. It can also turn on automatic daily updates.

curl -sL https://get.beszel.dev -o /tmp/install-agent.sh && chmod +x /tmp/install-agent.sh && /tmp/install-agent.sh

The script asks for the key interactively, or you can pass it with -k, along with -t for the token and -url for the hub URL. The Linux command copied from the hub dialog already includes all three. This route suits a Proxmox host or any machine where you want S.M.A.R.T., ZFS and sensor data without wrestling with container permissions.

Adding lots of machines? Open Settings and then Tokens & Fingerprints and turn on the Universal token. Agents that start with that token register themselves without you creating each system first. An ephemeral token gives new agents one hour to register, or until the hub restarts. Agents that have already registered can reconnect afterward. Each agent is then locked to its machine by a fingerprint, which the hub checks on every connection.

Step 4: Add extra disks, temperatures, S.M.A.R.T. and GPU data

By default the agent reports the root disk. A home server’s important data usually lives elsewhere, so tell the agent about the other drives.

Extra disks with the Docker agent. Create an empty folder on each drive, then mount it read-only into the container under /extra-filesystems. The part after a double underscore becomes the label on the chart.

    volumes:
      - ./beszel_agent_data:/var/lib/beszel-agent
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /mnt/disk1/.beszel:/extra-filesystems/sdb1:ro
      - /mnt/media/.beszel:/extra-filesystems/sdc1__Media:ro

Extra disks with the binary agent. Set EXTRA_FILESYSTEMS to a comma-separated list of devices, partitions or mount points, such as sdb,sdc1,/mnt/network-share. Network mounts show usage but no I/O. Run lsblk -o NAME,KNAME,SIZE,TYPE,MOUNTPOINT and use the kernel name (KNAME), which fixes missing I/O on encrypted disks and logical volumes. ZFS pools are picked up automatically and do not need to be listed.

Beszel system page charts for disk usage, disk I/O, bandwidth, Docker network I/O, temperature of system sensors and GPU power draw for a GeForce RTX 3050 Ti and Radeon 680M
A single host’s charts show disk I/O, network traffic, temperatures and GPU power draw. Image: Beszel

S.M.A.R.T. data. Beszel reads drive health from smartctl version 7.0 or newer, which needs extra permissions. For Docker, switch to the :alpine image, pass in the base device names (sda and nvme0, not sda1 or nvme0n1) and add two capabilities:

  beszel-agent:
    image: henrygd/beszel-agent:alpine
    devices:
      - /dev/sda:/dev/sda
      - /dev/nvme0:/dev/nvme0
    cap_add:
      - SYS_RAWIO # required for S.M.A.R.T. data
      - SYS_ADMIN # required for NVMe S.M.A.R.T. data

For the binary agent, install smartmontools and add AmbientCapabilities=CAP_SYS_RAWIO CAP_SYS_ADMIN and a matching CapabilityBoundingSet line under [Service] in /etc/systemd/system/beszel-agent.service, then reload systemd and restart the agent. Drives are checked every hour by default (SMART_INTERVAL). Beszel complements, rather than replaces, proper SMART monitoring with smartd, which can run self-tests on a schedule.

ZFS pools. The Docker agent needs the :alpine image and the device /dev/zfs:/dev/zfs. The binary agent needs the ZFS tools on the host, and possibly DeviceAllow=/dev/zfs rw in its service file.

Temperatures and GPUs. Sensors are detected automatically. Use SENSORS to include or exclude sensors by name pattern, or set it to an empty string to turn temperature monitoring off. NVIDIA cards need the henrygd/beszel-agent-nvidia image and the NVIDIA Container Toolkit on the host; Intel graphics use henrygd/beszel-agent-intel.

Step 5: Set up notifications

Open Settings and go to Notifications. There are two sections: Email notifications, which needs an SMTP server configured, and Webhook / Push notifications, which takes Shoutrrr service URLs.

Beszel Settings page on the Notifications tab with an email address under To email(s), and generic webhook and Telegram URLs under Webhook / Push notifications, each with Test URL and delete buttons
Use Test URL to check each notification destination before enabling alerts. Image: Beszel

Click Add URL, paste the URL for your service, press Test URL and then Save Settings. A few common formats:

ntfy://:ACCESS_TOKEN@ntfy.example.com/homelab
ntfy://ntfy.sh/your-random-topic-name
telegram://BOT_TOKEN@telegram?chats=CHAT_ID
discord://TOKEN@WEBHOOK_ID
gotify://gotify.example.com/APP_TOKEN

Keep the colon before the ntfy access token. If your server uses a username and password, the format is ntfy://user:password@host/topic. Beszel’s docs also list a fallback for tokens that don’t work in the standard form: generic+https://host/topic?@authorization=Bearer+TOKEN. The same page lists Pushover, Matrix, Slack, Teams, MQTT, Signal and a generic webhook for anything else.

Two extras in Settings are worth a look. Quiet Hours schedules daily or one-time windows when notifications will not be sent, either for all systems or one system. That suits a nightly backup job that always spikes disk I/O. Alert history is kept in Settings too, which helps when you are trying to work out what happened while you were asleep.

Step 6: Turn on alerts for each system

Alerts are set per system from the bell icon in the systems table. Each alert has a threshold and a duration, and Beszel compares the average over that duration with your threshold, so a five-second CPU spike does not wake you up. Switch to the All Systems tab in the same sheet to apply a set of alerts to every system at once; tick Overwrite existing alerts if you want it to replace per-system settings.

Beszel Alerts sheet for the system great-northern with Status, CPU Usage, Memory Usage, Disk Usage, Bandwidth and Temperature alerts switched on, each with an Average exceeds threshold slider and a For minutes duration slider
Set alert thresholds and durations for each system from its Alerts panel. Image: Beszel
AlertTriggers whenSensible home server starting point
StatusThe system switches between up and downOn, for every system
CPU UsageAverage CPU use exceeds the threshold80% for 10 minutes
Memory UsageAverage memory use exceeds the threshold90% for 10 minutes
Disk UsageUsage of any disk exceeds the threshold (ZFS and Btrfs pools included)85% for a few minutes
TemperatureAny sensor exceeds the thresholdJust above your normal load temperature
Load Average 1m, 5m, 15mThe load average exceeds the thresholdUse 5m or 15m, set near your core count
BandwidthCombined upload and download exceeds the thresholdOnly if you have a data cap or metered link
CPU I/O Wait, CPU Steal TimeAverage I/O wait or steal time exceeds the thresholdI/O wait helps spot a failing or overloaded disk; steal time matters on VPS
GPU Usage, BatteryGPU use exceeds, or battery charge drops below, the thresholdBattery is handy for laptops used as servers
Container HealthA container’s health check reports unhealthyOn, if your containers define health checks
Failed ServicesAny systemd service enters the failed stateOn; the agent polls systemd every 10 minutes
Network Monitor LossPacket loss over the past hour exceeds the thresholdStart with the 5% default

Treat these thresholds as starting points. Adjust them after you’ve seen how your hardware behaves during normal use, including backups. Once alerts can reach you, Beszel can notify you when a monitored drive starts reporting a S.M.A.R.T. failure or when a ZFS or Btrfs pool worsens from ONLINE to DEGRADED. Check both drive and pool health after setup. A failure that already existed when the agent first saw the device won’t trigger an alert.

Step 7: Optional network monitors and a heartbeat

Network monitors (agent 0.20.0 or later) let each agent probe a target and record response time and packet loss. Open Network Monitors from the navbar, click Add Monitor, pick one or more systems and set the target, protocol (ICMP, TCP, HTTP or DNS), port for TCP, and an interval from 1 to 3,600 seconds (30 by default). Probe your router and a stable external endpoint from the same agent. If the router answers and the external check fails, start by checking the upstream connection. ICMP from the Docker agent needs the NET_RAW capability if you have dropped Docker’s defaults.

To get an alert when the Beszel hub itself goes down, set HEARTBEAT_URL on the hub and it pings an outside service such as Uptime Kuma or Healthchecks.io every 60 seconds by default. If the hub dies, the pings stop and that service alerts you. With the default POST method it also sends a JSON summary of systems that are down and alerts that are active. Uptime Kuma push monitors are designed around simple GET pings, so the example sets HEARTBEAT_METHOD to GET.

    environment:
      APP_URL: https://beszel.example.com
      HEARTBEAT_URL: https://uptime.example.com/api/push/YOUR_PUSH_TOKEN
      HEARTBEAT_INTERVAL: 60
      HEARTBEAT_METHOD: GET

Securing and backing up Beszel

  • Do not expose port 8090 raw to the internet. Put the hub behind a reverse proxy with HTTPS, or keep it on a private network such as Tailscale or WireGuard. The reverse proxy must pass WebSocket connections, and APP_URL should match the public address.
  • Prefer WebSocket mode over untrusted networks. The hub does not verify the agent’s SSH host key, so the project recommends WebSocket mode with an HTTPS hub URL when agents report across the public internet. For a WebSocket-only remote agent, set DISABLE_SSH=true on that agent to turn off its SSH listener. Keep the hub’s SSH fallback enabled if you use the local Unix socket setup shown above.
  • Agents behind CGNAT are fine in WebSocket mode. The agent dials out to the hub, so a Raspberry Pi at a relative’s home on a Jio or Airtel connection behind CGNAT, with no public IP, can still report in as long as the hub itself is reachable.
  • Turn on extra login protection. Beszel supports OAuth and OIDC sign-in, and MFA_OTP adds email one-time passwords once SMTP works.
  • Back up the hub. Use the built-in backups in the hub settings, which save to disk or S3-compatible storage and restore from either, or stop the hub and copy the whole beszel_data folder.

Agents running in Docker update when you pull a new image (docker compose pull then docker compose up -d). Binary agents update with beszel-agent update, or daily on their own if you enabled auto-update in the install script.

Troubleshooting common Beszel problems

ProblemWhat to check
System stays red after adding itCheck the hub logs in PocketBase at /_/#/logs. Make sure the agent can reach /api/beszel/agent-connect on the hub, or the hub can reach the agent on port 45876. Test with telnet agent-ip 45876.
Local agent will not connect with localhostUse the unix socket path /beszel_socket/beszel.sock as Host / IP, as in Steps 1 and 2.
SSH mode fails silentlyHosts with iptables -P FORWARD DROP can break SSH mode. Try connecting the agent over WebSocket instead.
Container charts are emptyRun docker stats. If it shows zero memory, enable cgroup memory accounting (common on Raspberry Pi). Old Docker 24 releases also cause gaps; upgrade if you can.
Root disk shows the wrong deviceSet FILESYSTEM on the agent to the right device, partition or mount point from lsblk or df -h.
Live charts freeze behind a proxyDisable gzip or other compression for text/event-stream responses on the proxy.
Week and month charts have gapsLonger records are averages of shorter ones, so the agent has to run without long interruptions to fill them.

Once your first system is online, check that the dashboard includes the disks that hold your data and backups. Set a disk usage alert and send a test notification before adding the rest of your machines.

Frequently asked questions

Is Beszel free?

Yes. Beszel is open source under the MIT licence, and there is no paid tier or cloud account. You host the hub yourself.

Can Beszel monitor Windows and macOS?

Yes. The Windows agent installs through WinGet or Scoop with a PowerShell script that sets it up as a service, and the macOS agent installs through Homebrew. Some sensors are platform-specific; Windows can use LibreHardwareMonitor for sensor data with LHM=true.

Does the agent need an open port?

Only for SSH mode, where the hub connects to port 45876 on the agent. In WebSocket mode the agent makes an outgoing connection to the hub, so nothing on the agent side needs to be reachable.

Can Beszel monitor Proxmox LXC containers and VMs?

Install an agent inside each LXC or VM you want to see. Inside LXC the agent already uses cgroup accounting for CPU, and USE_CGROUP=true makes it use the container’s cgroup for memory too. For host-level data such as ZFS pools and drive health, run the binary agent on the Proxmox host itself.

About the author