status: instance overview and local health
Check instance version, role, replication, activity, license, connections and local disk.
First command to run on an instance: one screen showing role, connection headroom, active/waiting sessions, license validity, replication lag and local data-directory disk usage. Read-only: never modifies sessions, settings or data.
Usage
Key Options
| Option | Effect |
|---|---|
-h <host> | Target host IP/DNS or Unix socket directory (default /tmp); TCP skips local disk checks with [COVERAGE] |
-p <port>, -d <db>, -U <user> | Target port (default 54321), database (test), and user (system) |
--json | Emit structured JSON (inst.info, inst.downstreams, inst.upstream, inst.databases, inst.disk) |
Verdict & Reading Output
FAIL(exit=2): Ordinary-user connections exhausted, data filesystem>= 95%used (statfsover local Unix socket), or expired license.WARN(exit=1): Data filesystem>= 90%, license<= 30days remaining, or standby WAL receiver missing/disconnected/replay paused.UNKNOWN(exit=3): Required probes failed or masked—non-monitoring users who cannot read other sessions see[REDACTED]instead of false0activity; remote TCP runs skip local disk cleanly.- Standbys:
[REPLICATION]shows upstream host/slot, WAL replay state (active/paused), and byte lag.
Example (KES V9 Primary, COLUMNS=80)
Related Commands
kbdiag check— run the bounded nine-domain health patrol and offline HTML exportkbdiag session— inspect active, waiting, oridle in transactionconnectionskbdiag space/kbdiag server— inspect host disk mounts or license/parameter details