Server overview
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Click a server anywhere in MZPanel and you drop into its server-detail view
(/servers/:id) — the workspace for one box. This page is an orientation: it
explains the three-column shell, the grouped section menu, and the live info rail,
so the per-section pages that follow feel like home. Available on all plans.
The three-column shell
Section titled “The three-column shell”On a wide screen the server view is three columns that frame one active section:
- Left — the section menu. A grouped rail (see below) that swaps the center pane without a page reload. The active section is highlighted; the menu and info rail stay mounted as you move around.
- Center — the active section. Sites, PHP, Cron, Monitoring, and so on render here. Only this column scrolls and reloads; the frame around it is stable.
- Right — the Server info rail. A live panel of the box’s vitals: CPU / RAM / Disk / Swap gauges, Identity (IPv4/IPv6, hostname, OS, arch, kernel, timezone), Hardware (CPU model, frequency, virtualization), Activity (network, processes, load average) and Agent (agent version, uptime, registered date). A Status group on top shows pending OS updates, the server’s tag and its notes (each links to where you change it). It updates live over the same metrics stream the Monitoring page uses, and can be collapsed to a thin strip for more width.
The layout reflows on smaller screens: below 1280 px the info rail is dropped and a one-line summary strip above the section keeps the online state, agent version, IP and OS in view (it also shows while a docked panel hides the rail). On a phone the section menu becomes a horizontal scrolling strip on top with a server switcher and a sections dropdown.
The section menu, group by group
Section titled “The section menu, group by group”The rail is organised so the everyday sections lead and the deeper system tooling tucks away. The primary group has no header; System is collapsible and starts collapsed (it opens automatically when you’re in one of its sections). Item badges show live counts (sites, databases, PHP versions, certificates, cron jobs, users, extensions) read straight from the box.
- Main — Sites (the home), Apps (Docker containers & stacks) and Databases.
- Web — PHP, DNS & TLS and
Cron Jobs. Mail is not in this menu: it is an account-level hub at
/mail(one mail host per organization), and the old/servers/:id/maillink redirects there — see Mail. - Tools — Users & SFTP and File Manager.
- System (collapsible) — Services, Monitoring, Storage, OS Updates, Security and Extensions.
- Settings — Settings: server identity, Updates & reboots (automatic OS updates, both reboot schedules and the agent auto-update policy), Box Lock and the danger zone.
- Related — account pages that hold this server’s data: Backups and Uptime open filtered to this server; Mail host and Private network open the account hub.
How it works
Section titled “How it works”The shell fetches the server record, live metrics and the section counts once, then shares them with every section through a common context — so switching sections never re-loads the frame. It drives a few pieces of real data:
- Vitals & gauges come from a per-box metrics snapshot the control plane polls while you’re watching and fans out over a live stream, so the info rail and the Monitoring page always show the same numbers with one poll per box (not one per viewer).
- Every badge count (sites, apps, databases, PHP, certificates, cron, users, extensions, OS updates) comes from the agent-pushed inventory cache — instant, one read per box rather than a live job per viewer, and still present when the box is offline.
- Identity & hardware facts come from a
server.factsjob (mz facts), cached on the control plane so an offline box still shows its last-known IP, CPU model and timezone rather than a blank. - Online / offline & last-seen track a live heartbeat stream; the footer counts up “last seen” every second.
CLI & automation
Section titled “CLI & automation”The server view is navigation over the same engine the on-box mz CLI drives — there
is no single “overview” command, but two read-only calls back the vitals you see here:
mz --help # every command group available on the boxmz status --json # sites/apps counts, service health, versionsmz facts --json # identity + hardware facts (IP, CPU, virt, timezone)Each section has its own richer commands — start from any per-section page, or see The mz CLI and the command catalog.
Automate it (MCP / REST)
Section titled “Automate it (MCP / REST)”An AI agent (Claude Code, Cursor, ChatGPT…) connected to mcp.mzpanel.com, or any
script using the REST API at /v1/api with the same token, reads a server like this.
MCP and the REST API are on every plan.
| Goal | MCP tool | REST |
|---|---|---|
| Find the server id | servers_list | GET /v1/servers |
| Live vitals (CPU/RAM/disk) | metrics_get, servers_metrics_history | GET /v1/servers/{id}/metrics/history |
Cached inventory of one kind (php, services, databases, docker, ssl, updates, security, …) | servers_inventory, servers_inventory_refresh | GET /v1/servers/{id}/inventory/{kind} · POST …/refresh |
| Sites on the box | servers_sites, sites_list | GET /v1/servers/{id}/sites |
| Rename / notes / tag | servers_update | PATCH /v1/servers/{id} |
| Any on-box action | jobs_schema → jobs_create → jobs_get | GET /v1/api/job-kinds/{type} → POST /v1/servers/{id}/jobs |
The generic jobs door. Every section on this and the following pages is a set of
job kinds (site.create, php.switch, cron.add, …). Call jobs_schema (or
GET /v1/api/job-kinds/{type}) first: it returns the exact body schema, the token
level the kind needs (read / operate / full), any opt-in danger scope
(sites:delete, data:delete, backups:restore, system:admin, …) and its
min_tier. Then jobs_create with {id, body: {type, ...fields}} and poll jobs_get.
Typical errors: 400 with Zod-style issues (unknown keys are rejected with a hint
naming the closest accepted key), 403 tier_required (a Pro-only kind on a lower
plan), 403 when the token lacks the level/scope or the server is not in its
allowlist, and a job result with exit code 127 when the agent has no handler for
the command (update the agent). Jobs sent through the API/MCP are durable: with the
agent offline they stay queued and run when the box reconnects (they expire after
24 h). Kinds that carry secrets or env values are never queued — they return
409 server_offline instead. See Control plane API,
Job kinds and Reading the docs as an AI.
Gotchas & troubleshooting
Section titled “Gotchas & troubleshooting”- Sites is the home.
/servers/:idredirects to/servers/:id/sites; old/servers/:id/healthand/servers/:id/ailinks land there too, and per-server terminal links redirect to the account terminal, so bookmarks still land. - Offline shows the last-known state, not mock data. With the agent offline, the info rail and badge counts render from cache (dimmed / “last seen” in the footer); anything that needs a live read waits until the box reconnects.
- A gauge or fact that reads ”—” is loading, not broken. Each row resolves independently; a slow facts read leaves a placeholder rather than blocking the panel.
- Merged sections. Daemons is now a tab inside Services, and Logs a tab inside Monitoring — the old standalone menu rows are gone (deep-links redirect).
- The right rail hides when a drawer is open. Opening the AI chat or a docked detail panel takes the info rail’s place so panels don’t stack; close it to bring the rail back.
Related
Section titled “Related”- Connect a server — install the agent and register a box.
- Monitor a server — services, metrics, OS updates and storage.
- The mz CLI — driving the box from the command line.