What you’ll see
Beszel
- Systems: every system as a named dot, by name, up to 40 at once with Show N more past that, and 60 in all: on a bigger hub the ones down or alerting stay in, and a note says how many there are. Red when Beszel has it down, orange while one of your alerts is firing on it, grey while it waits for its agent to connect, and off while it’s paused. A dot that changes sends a notification. Pointing at a dot shows its CPU, memory and disk, or what’s wrong. A click opens the system’s page.
- Busiest: the five systems using the most CPU, with their memory and disk.
- Hub: how many systems there are and how many aren’t up, the fullest disk, and Beszel’s version.
- Alerts firing: shown only while an alert is firing, newest first, each opening its system.
- Alert history: closed at the bottom. How many alerts fired in the last 7 days, and the four newest, firing or cleared.
System
What a dot opens.
- Details: whether it’s up and for how long, down and since when, paused, or which alert is firing.
- CPU and Memory: the last 12 hours, from the readings Beszel keeps every 10 minutes.
- Disks: how full the root disk is, then any others the agent watches, by name.
- Temperatures: the sensors the agent reports, hottest first. Not every machine has any, and the card shows only when they do.
- System: load, CPU model and cores, operating system, network traffic, uptime and the agent’s version.
- Containers: its Docker or Podman containers by CPU, unhealthy ones first. Shown only on a system that has containers.
- Alerts: the alert rules you set on it, the firing ones marked.
Status
- Watches every system the user can see.
- Red when one is down, orange while one of the user’s alerts is firing on it.
- Grey while one is waiting for its agent, and paused systems never count as a problem.
- Red once Beszel stops answering.
- Notifies you when it turns orange or red.
How it connects
Beszel’s hub runs on PocketBase and has no API keys. Legato signs in as a Beszel user with an email and password, keeps the token it gets back, and signs in again when Beszel turns that token down.
Requests it makes on its own 6
- POST
/api/collections/users/auth-with-passwordThe sign-in token.
When Legato starts, and again when the token has run out
- GET
/api/collections/systems/recordsEach system’s state and its CPU, memory and disk.
Every minute, and for a system’s page while it’s open
- GET
/api/collections/alerts_history/recordsThe alerts firing, the four newest, and how many fired in the last 7 days.
Every minute (three requests)
- GET
/api/beszel/infoBeszel’s version.
Every minute
GET /api/collections/system_details/records,…/containers/records,…/alerts/recordsIts CPU model and operating system, its containers and its alert rules.
Every minute, while a system’s page is open
- GET
/api/collections/system_stats/recordsIts last 12 hours of 10-minute readings.
Every 5 minutes, while a system’s page is open
The overview makes five requests a minute, and an open system’s page four more, plus its history every 5 minutes. All are small: a system is a few hundred bytes of an answer. The overview reads up to 1,000 systems and 1,000 firing alerts, down systems first. Beszel’s REST API documentation covers the collections.
Which user. Make a user with the read-only role for Legato. It sees the systems shared with it, or every system when the hub runs with SHARE_ALL_SYSTEMS=true. Alerts belong to the user who made them, so the pages show the alerts of the user Legato signs in as. A read-only user can make its own alerts in Beszel’s settings. A user that signs in only with OAuth, or with a one-time code (MFA_OTP), can’t be used.
Sources and buttons explains each part of a page.
Set it up
- Make a user. As an admin, open Users from Beszel’s account menu. It opens PocketBase’s dashboard, where you add a user with the
readonlyrole. Add that user to each system you want to see (a system’susers, in the same dashboard), or run the hub withSHARE_ALL_SYSTEMS=true. Then sign in to Beszel as that user once and set up its alerts. - Save its password in Legato. In Settings → Secrets, save the password under
beszel, bound to your hub’s address. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download both pages and run
/Applications/Legato.app/Contents/Helpers/legato set beszel beszel.json, then the same forbeszel-system. - Point them at your hub and user. Change
http://beszel.local:8090to your hub’s address, with its port, andlegato-reader@example.netto the user’s email, on every source of both pages. If you reach the hub over https with a self-signed certificate, use its IP address or a.localname, which Legato can trust. A hub under a path, such ashttps://example.com/beszel, isn’t supported.
The dots fill within a minute. A wrong email or password is the usual reason they don’t: the page then notes that Beszel refused the sign-in.
Prompt for your agent
Add 2 Legato pages for Beszel, starting from https://legatobar.com/examples/beszel.json, https://legatobar.com/examples/beszel-system.json. Use the page IDs beszel, beszel-system if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Add both pages as they are. Set the url of every source on both pages to my Beszel hub’s address, and the identity in every source’s sign-in request to my Beszel user’s email. I’ll save the user’s password as beszel in Settings → Secrets myself.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
Why don’t I see my alerts?
Beszel keeps alerts for each user. The pages show the alerts of the user Legato signs in as, so set them up on that user, or sign in as the user whose alerts you want.
Can I pause a system from Legato?
No. The pages only read, and a read-only user can’t pause anything. Pause it in Beszel.
Can I watch more than one hub?
Not yet. One hub already watches every machine you add to it, so most people need only one.