my-homelab-configs/docs/doctor-overview.md

46 lines
2.1 KiB
Markdown

# Focused Jeannie doctor
Use the same inventory areas as `status`, selecting one at a time:
```sh
./jeannie doctor oci
./jeannie doctor rpi
./jeannie doctor opi5
./jeannie doctor debian
./jeannie doctor cluster
```
The doctor reuses the selected area's status checks and adds focused
diagnostics for the OCI edge, RPi, Debian, and cluster. It does not offer an
all-area mode. The RPi view checks OS kernel, uptime/load, available memory,
root filesystem usage and systemd state as well as its services. The Orange
Pi view reports its host and selected K3s checks.
Existing `doctor-edge`, `doctor-gitea`, `doctor-rpi`, `doctor-cluster`, and
`doctor-k8s` remain available for their specialized investigations.
To investigate one item, copy its full check name from status, or provide an
Argo CD application name or Compose project/service:
```sh
./jeannie doctor cluster gitea-runner --details
./jeannie doctor gitea-runner
./jeannie doctor debian --item homelab-gitea/gitea --details
./jeannie remote doctor rpi --item homelab-rpi-services/pihole --ai
```
Matching is exact and case-insensitive. A short Compose service name is
accepted only when unambiguous. Jeannie collects the area's snapshots before
selecting the item; it reports an error if the name cannot be resolved. For a
selected Compose container it reads state, restart count, exit code and health;
for an Argo CD application it reads health, operation and unhealthy resource
status and deployment replica counts. An application name without a scope is
looked up directly in Argo CD on the selected cluster; Compose services still
need their host scope. It does not fetch container environment variables or Kubernetes
Secret contents. Remote Compose checks require noninteractive SSH and sudo.
Use `--ai` to request the existing evidence-validated AI explanation, or
`--no-local-rca` to disable it. AI is enabled by default for a selected item,
and is off by default for a whole host or cluster scope. It does not perform
repairs. `--json` returns structured evidence without AI output. These are
read-only checks; any suggested remediation should be reviewed separately.