ssh_monitor
Check SSH connection health: list profiles, test status, view pool stats, reload profiles, or close connections. See if a connection is ready, limited, no-route, or rejected.
Instructions
Looks after the SSH connections, not the machines behind them: lists the configured profiles, tests one and names the state (ready, limited, no-route, rejected), reports pool statistics, closes a connection or reloads the profile file. Close and reload drop live connections; the other actions only read. Start here on a machine you have not used yet — test says whether anything else will work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which of the five to do. | |
| profile | No | Which machine. Required for stats, test and close; list and reload take none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| action | No | ||
| broken | No | ||
| legend | No | What the words in this answer mean. A key names the field before the value — "state=limited", "jobs[].state=lost" — and only the values this answer actually used are listed. | |
| profile | No | ||
| profiles | No | ||
| exit_code | No | ||
| latency_ms | No |