Skip to content

Monitoring

KryoDesk has three monitoring views. They answer different questions and read different things.

View Shows Reads from Runs
Host status bar host, CPU, RAM, network up/down, uptime, logged-in users, disks of the SSH host the SSH host itself: read-only commands over the session’s connection every 3 s for every open SSH tab; logins every 15 s, login history every 120 s
Monitor window charts, all mounts, systemd services and failed units, Docker containers, and one card per detected service (nginx, MySQL, …) the SSH host of the active tab charts, services and Docker with the status bar; service cards only while the window shows the tab
Monitoring window an external system: Zabbix, GitLab, Sentry, UptimeRobot, YouTrack, Kubernetes that system’s API over HTTPS, with a token kept in the vault on refresh (manual or 30 s–5 min) while the window is shown; notifications in the background

The first two need an SSH session to a Linux host (/proc) that allows exec channels; they do not need an agent on the host. The third does not depend on any session.

Everything the status bar and the Monitor window show comes from commands KryoDesk runs on the host as the session’s user, over separate exec channels of the same SSH connection (the shell’s channel opens first, so a server with MaxSessions 1 still gives the terminal its channel):

  • Every 3 s: one command with head/cat of /proc/stat, /proc/net/dev, /proc/uptime, /proc/loadavg, /proc/meminfo, host name, kernel, /etc/os-release, ip -o addr show scope global, df -kPl and timeout 3 df -kPT.
  • Every 30 s: systemctl is-system-running, the failed units and the running and failed services (systemctl … list-units, systemctl show -p …).
  • Every 15 s, logged-in users and reboot state: who -u, the process chain of each session from /proc/<pid>/status, ps -e -o tty= -o comm= when tmux or screen is installed, getconf _NPROCESSORS_ONLN, and /var/run/reboot-required with its .pkgs file.
  • Every 120 s, login history: last -n 10 -i -w --time-format iso and the failed SSH logins of 24 h, counted on the host from journalctl (at most 10 s). Only on hosts with the timeout command.
  • Every 15 s, Docker: docker version, docker ps -aq, docker inspect with a fixed template and docker stats --no-stream. Plain docker, never sudo.
  • Service cards (only while the Monitor window shows this tab): one script per detected service, by default every 60 s.

Nothing is installed on the host. No command uses sudo: a failed sudo attempt would be an auth.log entry and often an “incident reported” mail.

These commands are ordinary processes of the session’s user. They show in process lists and in process auditing (auditd execve records, process accounting) when the host keeps them. Service probes take a lock file per service in $XDG_RUNTIME_DIR/kryodesk/ (without it ~/.cache/kryodesk/), e.g. kryodesk/nginx.lock. What a probe that talks to a daemon leaves there is listed next to its switch (see below).

Each service card of the Monitor window has a Passive part and, for some services, an Active one.

  • Passive (on by default, can be switched off per card and host): reads configuration files, /proc, ss -ltn, df, systemd unit properties and the journal of the unit, every 60 s while the Monitor window shows the tab. It runs none of the service’s own programs and does not connect to the daemon, so nothing appears in the daemon’s logs. The installed version comes from the package database files (dpkg, apk, pacman; RPM only through rpm, so with the active probe). It takes no lock file on the host.
  • Active (never on its own): connects to the daemon, e.g. mysql through the local unix socket, psql/pg_isready, redis-cli INFO, HAProxy’s stats socket, fail2ban-client. It runs once with Run active probe, or with every read while Repeat every 60 s (this session) is checked (not kept after the tab closes). The card shows in plain words what the probe reads and the traces it leaves; ? next to it shows the exact command (Runs:), its Traces on the host: (log entries, counters, audit records) and the script of the run. A repeated active probe is marked with a green, slowly pulsing dot in the card header; a paused one with an orange dot. Every run of a service’s binary or tool counts as active too: version reads (nginx -V, haproxy -v, apache2 -v, mysqld --version, postgres -V, pg_lsclusters, redis-server --version, keepalived -v, fail2ban-client -V, named -v, sqlplus -V, …), wg show, rpm -q, podman ps/podman stats, exportfs -v and postconf; the card lists them under Not in the passive read. Test config is part of the active side as well.

The whole service scan (detection and every card) can be switched off per host in the Monitor window, with the default in Settings → Connections → SSH Defaults.

Active probes never send a password: they rely on what the host already allows the account (peer authentication, unix_socket/auth_socket, socket permissions). Client option files and password environment variables are switched off (--no-defaults, PGPASSFILE pointing nowhere, env -i, …). After an authentication or permission error (Access denied, NOAUTH, role does not exist, Permission denied on the socket) a repeated probe stops until Retry, so it does not leave a failed login in the daemon’s log every minute. A single Run that is refused, and an answer that says “do not ask again”, pause only the active part (Resume active probe); the passive part keeps running.

Active probes run only when the host has a usable timeout and flock: a daemon that does not answer must not leave hanging processes, and a hung probe must be told apart from a new one.

Commands that are not purely reads (they open or create log files, resolve DNS, load modules that run code), such as nginx -t or apachectl configtest, run only when you press Test config… and then Run test, never in a loop. Before running, the card shows the exact command, what it does, the time limit and an ownership check of the binary and configuration files. KryoDesk does not run sudo; after a permission error it offers the sudo command for you to paste into the tab’s terminal and confirm there. See Monitor window.

The service probes filter on the host, field by field, before anything is sent back:

  • only a closed list of configuration directives per service; URLs without login and query string; from return only the status code (and the URL of a redirect); from use_backend only the backend name;
  • secrets in configuration (passwords, keys, tokens, auth, cookies, header values, Lua code) are masked on the host; the raw output of Test config is masked the same way, and the unmasked output is available only by running the command in the terminal yourself;
  • Docker: no environment variables and no labels except com.docker.compose.project and .service (labels may hold credentials, e.g. Traefik basic auth); only the last health check’s output, cut to 500 characters;
  • values read from configuration (paths of certificates, sockets) do not come back to the app to be put into another command: the script on the host uses them as variables.

Service data is not stored: it is not written to localStorage, files or logs, is not part of the 3 s history of the charts and is not given to the AI assistant.

The Monitoring window talks to the API of the source with its token, read only (GET requests, and Zabbix *.get methods). Tokens and passwords live in the encrypted vault and are sent only to the URL, with the TLS settings, they were saved with. While the app is locked nothing is queried in the background.

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