Server monitor
Server monitor is a health view of your saved servers. Instead of opening a session and typing top, df -h and free -m on every machine, it collects the essentials (CPU, memory, swap, disk, temperature, uptime, load and latency) and gives each host a status from the limits you set. One look tells you which server needs attention.
Opening the monitor
Section titled “Opening the monitor”Computer: Server monitor in the side rail, under Utilities. The monitor is a table with one row per host: Host, Status, the metric columns, Last 24 checks (a bar for each), Seen (how long ago it was checked) and, on each row, a button that opens a terminal and More for this host. Click a row to open its details on the right: Now, History, Filesystems, processes, failed systemd units, available updates, whether a restart is required, and System.
At the top, All, Critical, Warning and Can’t check show only the hosts in that state, and Reboot needed and Updates the hosts that ask for a restart or have updates waiting (each shows while it has any). While a filter is on, Broadcast to these and Run snippet on these under the table open Broadcast to hosts and Run on hosts with those hosts ticked, each with the hosts it can reach and a count of those (Run on hosts runs on SSH hosts alone). Beside them are the Background checks switch (“Checking 3 hosts in the background”, or “Background checks are off”), Thresholds, Refresh all, Columns and More options (Choose hosts to watch, Data source, Setup guide and Auto-refresh). Under the table, a line says the warning limits in use, for example “Warn at CPU 70% · RAM 70% · Disk 80%”.
More for this host has Open a session, Check now, Show details, Thresholds for this host, Edit host, and Watch this host or Stop watching.
Phone or tablet: the Monitor tab in the bottom bar. Each host has a card with its gauges and a small history line. Tap a card to open the host’s details.
Both use the same statuses and limits, so a host that is Critical on your phone is Critical on your computer. Only SSH hosts are monitored; local shells and other kinds of connection are left out.
Where the numbers come from
Section titled “Where the numbers come from”Each reading says where it came from: via SSH or via Prometheus.
| Source | How it collects | Needs an open session? |
|---|---|---|
| SSH commands (the default) | Runs short commands on the host (for example head -n 1 /proc/stat, cat /proc/loadavg, free -m, df -h /, uptime -p, and top, vm_stat and sysctl on macOS), each with a 5-second time limit. |
No, with Background monitoring on; otherwise a session to the host must be open. |
| Prometheus (optional) | Reads node_exporter figures from your Prometheus server and matches its targets to your saved hosts. |
No |
Background monitoring
Section titled “Background monitoring”Background monitoring connects to the hosts you choose with their saved credentials and refreshes their stats with no terminal open. It is off until you turn it on: the monitor’s page says “Background monitoring is off” with Turn on monitoring.
- Open the monitor and choose Turn on monitoring.
- Choose Choose servers (on a computer, also Choose hosts to watch in More options; on a phone, in the monitor’s menu) and tick the saved SSH hosts to watch (“Pick which saved SSH hosts get polled in the background.”). On a computer, a row that says Not watched yet has Watch this host, and so does a host’s panel on the Hosts page (see From a host’s panel). On a phone you can also long-press a host on the Hosts tab and choose Monitor in background, or Stop monitoring.
- Each chosen host is signed in to once and stays connected; its stats are read again at the check interval (every 5 minutes unless you change it, see Thresholds).
What it needs and how it behaves:
- Credentials that sign in without asking. A host whose key needs a passphrase that is not saved, or that has no saved key or password, is not dialed; it shows No credentials with a way to add them. Where the device is on a network that gives the host another key, that key is the one checked.
- A trusted host key. A host whose key this device has not seen yet, or whose key changed, is not monitored until you open a terminal to it and check the key.
- It does not keep retrying what will fail the same way. A host that refuses the sign-in, or cannot prove its key, is tried once. It is tried again when you press refresh, connect to it yourself, or change how it or its sign-in is saved. The host’s status says so: “It is not tried again by itself: every try would end the same way. Refresh to try again.”
- It does not forward your SSH agent. The monitor’s own connection never forwards your agent, even for a host with agent forwarding on.
Free and Squeezed: on Free you can monitor up to 5 hosts in the background (“Free tier can monitor up to 5 hosts in the background. Upgrade to monitor more.”); with Squeezed, any number.
Latency
Section titled “Latency”For a host you have a session with, latency is timed on that session’s own connection: one keep-alive round trip as it connects and every 30 seconds after. Nothing new is dialed for it.
Reachability checks
Section titled “Reachability checks”ZestSSH can also check whether saved hosts are reachable: it opens a connection to each host’s port at an interval and closes it without signing in, to show which hosts are up. These are off until you turn them on, because a server sees and logs every one of them as a connection that ended before sign-in, and a server that bans addresses for those may ban your device (fail2ban’s sshd jail does in its ddos and aggressive modes). Turning them on asks first.
- Computer: Settings > Terminal and SSH > Check whether hosts are reachable (also under Settings > Notifications), with a Check interval of 30 seconds, 1, 2 or 5 minutes.
- Phone or tablet: Settings > Notifications > Check whether hosts are reachable, with the same intervals.
A host you are connected to, one reached through a jump host, and one marked unreachable on the network you are on are never checked. Without a session, a host’s latency is the time a reachability check’s connection took, if you turned the checks on.
Prometheus
Section titled “Prometheus”Use Prometheus to read your hosts’ figures from a node_exporter setup you already run.
Setting it up
Section titled “Setting it up”- Open the data source settings:
- Computer: More options > Data source.
- Phone or tablet: the monitor’s menu button at the top right > Data source.
- Choose Prometheus, then Prometheus configuration.
- Fill in the fields below and choose Test connection. On success it says “Connected to Prometheus successfully” and how many targets it found.
- Choose Save.
ZestSSH also reads Prometheus whenever a Prometheus URL is set, even with SSH commands chosen, and still reads over SSH for hosts with an open session.
The fields
Section titled “The fields”| Field | What it does |
|---|---|
| Prometheus URL | The server’s address, for example https://prometheus.example.com:9090. |
| TLS settings | Opens the certificate settings below. “These certificates are only used for the Prometheus connection and do not affect SSH, cloud sync, or system-wide trust settings.” |
| Custom CA certificate | “Required if your Prometheus uses a self-signed or private CA.” Import CA (PEM) asks whether to read a PEM file or paste the certificate (Paste PEM). The CA is trusted in addition to the system’s own. Clear removes it. |
| Client certificate (mTLS) | “Required if the server demands mutual TLS authentication.” Import .p12 / .pfx reads the certificate and its key from a PKCS#12 file; Certificate password is that file’s password. ZestSSH presents it when the server asks. |
| Verify SSL certificate | On by default. See below for when turning it off takes effect. |
| Auth type | None, Basic auth (Username and Password), Bearer token, or Custom header (Header name, for example X-Authelia-Token, and Header value). |
Plain http and certificate checks
Section titled “Plain http and certificate checks”ZestSSH applies one rule to keep your Prometheus sign-in from going to whoever answers:
- Plain
http://: allowed to any address when Auth type is None. With a sign-in (basic auth, a token or a custom header), only to an address on your own network: this device, a private IPv4 range (10.0.0.0/8,172.16.0.0/12,192.168.0.0/16), link-local,100.64.0.0/10, IPv6 unique-local or link-local, or a name such asprometheusorprometheus.lan. - Verify SSL certificate off: takes effect only where plain http may go: with Auth type None, or for an address on your own network. Elsewhere the certificate is still checked.
When Test connection fails, it says why: “CA not trusted, import your root CA certificate under TLS Settings” (the TLS handshake failed), “Authentication failed (…)” (the server answered 401 or 403), or “Prometheus unreachable, check the URL and your network connection”.
How targets are matched to your hosts
Section titled “How targets are matched to your hosts”ZestSSH asks Prometheus for its active targets and matches each saved SSH host to one, preferring node_exporter targets (a job with “node” in its name, or port 9100). In order, it tries: the host’s address against the target’s instance, the host’s nickname against the instance, the nickname against the job name, then a loose match of the nickname inside the instance name. A host with no match gets no Prometheus figures.
From Prometheus, ZestSSH reads CPU, memory, root disk use and uptime. It reads them when you open the monitor, when you refresh, and at the auto-refresh interval if that is on.
What is stored, and where
Section titled “What is stored, and where”The Prometheus settings belong to the device and are not synced. The URL, auth type, header name and the Verify SSL certificate switch are kept with the app’s settings. The CA certificate, the client certificate and its password, the bearer token, the basic auth username and password, and the custom header’s value are kept in the system’s secure storage. Reset all settings leaves a Prometheus server’s settings as they are.
What each metric means
Section titled “What each metric means”| Metric | What it shows | Notes |
|---|---|---|
| CPU | On Linux, the share of processor time spent working between two readings of the first line of /proc/stat (everything but idle and waiting for a disk), as top shows it. On macOS, 100 - idle%. |
The first check reads the counters twice, a second apart; every check after gives the average since the check before. |
| RAM | Used memory as a share of total, with used and total in MB. | Linux uses free -m; macOS adds up active, wired and compressed pages, in the page size vm_stat gives (16 KB on Apple silicon, 4 KB on Intel). |
| Swap | Used swap as a share of total. | Linux, from /proc/meminfo. A host with no swap at all shows none. |
| Disk | Use of the root filesystem (/), from df -h /. |
The details list every filesystem and its inodes. |
| Temp | The host’s thermal zones. | Linux, where /sys/class/thermal has them. |
| Ping | Latency, in milliseconds. | See Latency. |
| Uptime | How long the system has been up. | |
| Load | The 1, 5 and 15 minute load averages. | How many cores’ worth of work is queued. |
On a computer, Columns chooses which columns the table shows, among them Network, Disk I/O and Updates. “Hosts that can’t report a metric show N/A. Detection is automatic.” Drag the edge of a column’s head to set its width, or double-click it to fit the column to what it holds. The widths are remembered on this device; Reset column widths in Columns puts them back. Host is as wide as its names, and the room left over goes to the metric columns.
Severity and thresholds
Section titled “Severity and thresholds”Every gauge is colored from the same warn and crit limits, and a host’s status comes from them too.
The limits are yours to set. Open Thresholds (on a computer at the top of the monitor, or Thresholds for this host in a row’s menu; on a phone in the monitor’s menu at the top right). The Monitor thresholds dialog has two panes. On the left are All hosts (defaults) and your hosts, by group, with a search and Active first; a dot marks a host with thresholds of its own. On the right is what you chose: a Warn and Crit value for each metric, on a host each with a mark and a figure for where that host stands now, so a limit can be set against what it does. A host has Copy from… (the thresholds another host has of its own), Reset to defaults and an optional Why. With All hosts (defaults) chosen, under Checking:
- Every: the check interval of background monitoring, 1, 2, 3, 5, 10, 15, 30 or 60 minutes (default 5).
- Change after: how many checks in a row must be over a limit before a host’s status gets worse, 1 to 10 (default 2). “It gets better at the first check back within limits.”
Reset to defaults at the foot, with All hosts (defaults) chosen, puts the defaults back, and how often hosts are checked. The limits a host has of its own stay: Reset to defaults beside a host’s name, with the host chosen, takes those away.
Defaults:
| Metric | Warn | Crit |
|---|---|---|
| CPU | 70% | 85% |
| RAM | 70% | 85% |
| Swap | 60% | 85% |
| Disk | 80% | 90% |
| Temperature | 70 °C | 85 °C |
| Latency | 150 ms | 400 ms |
A gauge below its warn value is green, from warn up to crit amber, at or above crit red. Latency counts at once; it does not wait for several checks.
Statuses (on a phone, tap one in the summary strip at the top to show only those hosts; on a computer, use All, Critical, Warning and Can’t check at the top):
- Critical: a fresh reading is at or above its crit limit.
- Warning: a fresh reading is at or above its warn limit.
- Healthy: fresh readings, all within limits.
- Can’t check: the monitor has no fresh reading it can trust, and says why: the host refused the sign-in, could not be reached, has no credentials, has a host key to review, is being connected to, has a reading that is too old (“The last reading is too old to trust.”), has nothing collecting stats for it, or has never been checked.
On a phone, a host you did not choose for background monitoring says Not monitored.
On a computer, the Status column says it in a few words: OK, the metric that is over its limit (for example RAM high), or why the host cannot be checked, with the fix beside it: No saved login (Add a key), Sign-in refused (Fix the login), Can’t reach it (Try again), Check failed, Host key changed or New host key (Review the key), Checking now, Last check is old, Not checked yet, Not watched yet (Watch this host), or Over the free plan’s limit (Upgrade). Point at it for the full cause, with details to copy where a check failed. Sorting by Status puts critical hosts first, then warnings, then hosts that cannot be checked, then healthy hosts that need a restart.
Reboot needed
Section titled “Reboot needed”A Debian or Ubuntu host that writes /var/run/reboot-required after updates shows Reboot needed: on a computer in its Status cell (“The host asks for a restart to finish installing updates.”), and in the header of a terminal open to it. ZestSSH only tells you: it never restarts a host.
A reading that is too old never passes for a live one. On the monitor’s page, a reading is too old once it is older than three check intervals, and never less than a minute.
Refreshing
Section titled “Refreshing”- Refresh: the refresh button (or pull down on a phone) reads stats again and retries hosts the monitor had stopped trying. It does not run reachability checks you have turned off.
- Auto-refresh: off by default. Choose Every 10s, 15s, 30s, 60s or 120s, or Off (on a computer, under Auto-refresh in More options; on a phone, in the monitor’s menu at the top right). It keeps running until you turn it off.
- Kept across restarts: the last readings are saved on the device, so when you reopen the app you see them at once, marked with when they were collected, until fresh ones arrive.
Sorting and filtering
Section titled “Sorting and filtering”Phone or tablet: Sort & filter sorts by Severity (worst first) (the default), Name (A-Z), Name (Z-A), or CPU, RAM or Disk (high to low). Hide unmonitored drops hosts with no data. Your sort is remembered.
Computer: click the Host or Status header, or a metric’s header (Updates too), to sort by it; click again to reverse. Columns picks the metric columns.
Both show a short history line for each host from its recent readings.
Alerts
Section titled “Alerts”With Monitor alerts on (Settings > Notifications on a computer; Resource alerts under Settings > Notifications on a phone), the monitor tells you when a host goes critical or over a warning limit, or can no longer be checked. A notice comes when a host gets into a trouble it was not in before, or a worse one, and not again while it stays there. Its title names the host and the trouble (“is critical”, “needs attention”, “cannot be reached”, “refused the sign-in”, “can no longer be checked”), with what the check found and details to copy. Notices go to the bell; see Notifications.
On a computer, the Hosts page also shows health chips from the monitor on the hosts it watches, and can show only the hosts that need attention.
From a host’s panel
Section titled “From a host’s panel”On a computer, the panel of a host on the Hosts page has a Health section, with Server monitor to open the monitor:
- For a host the monitor does not watch: Watch this host (“See its CPU, memory and disks here, and be told when one runs high.”). On Free, once 5 hosts are watched, it says so and offers Upgrade instead.
- For a watched host: each metric with the limit it alerts at (“alerts at 70%”) and an Alert button. Its menu has Use default or Custom threshold; Mute (“hide on cards”: the metric no longer makes the host Warning or Critical, nor sends a notice); and Snooze For an hour, For 24 hours or Until it recovers, with Alert again now to end it. The button then says Muted or Snoozed. For memory on a host with ZFS, Count ZFS ARC as free memory.
- The section’s menu has Thresholds for this host… and Stop monitoring.
These alert choices are kept on this device, like the thresholds.
Common mistakes
Section titled “Common mistakes”- Expecting stats with nothing collecting them. Without an open session, Background monitoring or a matched Prometheus target, a host has no gauges: “Stats need an active SSH session or a configured Prometheus target”.
- Reading old numbers as live. Saved readings show when they were collected; a host with only old readings is Can’t check.
- Leaving a key’s passphrase unsaved. Background monitoring cannot ask for it, so the host shows No credentials.
- Turning on reachability checks for servers that ban. Server Monitor does not need them: it signs in once and stays connected.
Platform notes
Section titled “Platform notes”- The monitor reads Linux and macOS servers; it finds out which with
uname -s. Other systems may show some or all metrics as N/A. Where only some can be read, the computer’s Status cell says which, for example “FreeBSD: disk and ping only”. - Latency works for any host, since it is timed on the SSH connection itself.
Next steps
Section titled “Next steps”- Split terminal: keep a few servers on screen while you watch the monitor.
- Snippets: one-tap health commands to look into a host the monitor flagged.
- Run on hosts: run one command on many hosts at once.
- SSH connections: set up the hosts the monitor watches.