Skip to content

Host status bar

Host status bar

The bar sits under the area of an SSH session (in a split, under each group that shows one). Tabs that are not SSH (local terminal, editor, database) have no bar. It is fed by read-only commands over the session’s connection, most values every 3 s (see Monitoring). The host must be Linux with /proc; otherwise, or when the server refuses exec channels, the bar shows monitoring unavailable.

From left to right:

Item Value Source
Host host name; hover: details (below) /proc/sys/kernel/hostname
CPU busy share since the previous sample, with a sparkline /proc/stat (first line): everything but idle and I/O wait
RAM used / total /proc/meminfo: MemTotal − MemAvailable (what free calls used)
Network ↑ ↓ bytes per second sent / received /proc/net/dev, physical interfaces only
Uptime up 41d 3h; reboot required when the host asks for it /proc/uptime, /var/run/reboot-required
Users the session’s login and the number of login sessions on the host (4 users, as uptime counts them) who -u
Disks <mount>: <used>% for up to 4 filesystems; orange from 90 % df -kPl (local filesystems)

CPU and network need two samples, so they show a dash for the first 3 s.

Network: interfaces with a device in /sys/class/net/*/device. When that list cannot be read, all interfaces except known virtual ones (lo, docker*, br-*, veth*, virbr*, cni*, flannel*, cali*, vxlan*, tun*, tap*, wg*), which would count container and VPN traffic twice.

Disks: block devices (/dev/…, not /dev/loop*), in df order. /boot and /boot/* only when at least 80 % full. Network mounts are left out (df -l), as they can hang.

Host details

  • Host: connected to (address of the session), system (PRETTY_NAME from /etc/os-release), kernel, global addresses of the physical interfaces (ip -o addr show scope global), load average (1 / 5 / 15 min), uptime, user.
  • CPU: chart of the last 5 minutes (100 samples) split into User (with nice), Kernel, I/O wait, IRQ (hard and soft) and Steal; now / average / maximum; load average.
  • Memory: chart of Apps, Buffers and Cache; Free; Swap used / total; Virtual (Committed_AS / CommitLimit).
  • Network: chart of download and upload over the physical interfaces.
  • Uptime: exact time since boot; boot time (btime in /proc/stat, shown in local time); load average (1 / 5 / 15 min) and the same divided by the online CPUs (getconf _NPROCESSORS_ONLN); reboot required (Debian, Ubuntu: /var/run/reboot-required) with the packages from /var/run/reboot-required.pkgs.
  • Users: sessions on the host, recent and failed logins (below).
  • Disks: every mounted filesystem except pseudo ones (tmpfs, devtmpfs, efivarfs, squashfs, overlay, ramfs, devfs, nsfs, tracefs) with type, used, size and a bar (orange from 90 %). This list comes from timeout 3 df -kPT, so it includes network mounts.

Uptime card

The same values, as larger charts with the services and containers, are in the Monitor window.

Users card

Three parts, each with its command and the time of the read.

  • Sessions (who -u, every 15 s): user, terminal, source (host from utmp: address or name; local without one), type, login time (local time and how long ago), idle time (active = input in the last minute, > 24h = old), and this connection for sessions on the same SSH connection as this tab. Above the table: this connection as the host sees it (SSH_CONNECTION: client address and port → server address and port). Hovering a row shows the session’s pid and its process chain.
  • Recent logins (last -n 10 -i -w --time-format iso, plain last -n 10 -i -w when the option is not known; every 120 s): user, terminal, address, login, logout or state (still logged in, crash, duration).
  • Failed SSH logins, 24 h (journalctl -u ssh.service -u sshd.service -u 'ssh@*.service' -u 'sshd@*.service' --since=-24h, at most 10 s; every 120 s): lines Failed … for … and Invalid user …, and the 10 addresses with the most such lines (the address at the end of the line, where sshd writes the peer). The lines are counted on the host; only the totals and addresses come back. A user outside the systemd-journal / adm groups sees only part of the journal: the counts are then marked incomplete with the hint of journalctl. /var/log/auth.log and /var/log/secure are not read.

Session types:

Type When
SSH sshd or sshd-session among the ancestors of the session’s process
mosh mosh-server among them, or the utmp host … via mosh
telnet telnetd / in.telnetd among them
console tty1…, console
serial console ttyS*, ttyAMA*, ttyUSB*, hvc*
graphical display :0 as host or terminal, or a display manager (gdm, sddm, lightdm, xdm, Xorg) among the ancestors
tmux pane, screen window panes and windows that tmux or screen wrote to utmp (tmux(…).%N, :pts/N:S.M)
local pts a pseudo-terminal without a remote host (terminal emulator, su)
remote a remote host in utmp but the process is not visible (/proc with hidepid)

+ tmux / + screen after the type: a tmux or screen client runs on that terminal (ps -e -o tty= -o comm=, only when tmux or screen is installed).

The ancestors come from /proc/<pid>/status (up to 8 levels). This connection: the sshd process of this SSH connection (the parent of the monitoring command) is among the session’s ancestors, compared by pid. The type is read from names the host reports (process names, utmp), so a user of the host can make it show something else. last and the failed logins need the timeout command on the host; without it they are not read. Nothing is written on the host.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close