Nvme Health
NVMe drive health for any Linux host: SMART/health log (critical warnings, spare, wear, media errors, unsafe shutdowns, thermal throttling) with per-reading deltas, hwmon temperatures, controller identity and the error log, as a typed, versioned Swamp behavior with scheduled workflow assertions.
First release: NVMe SMART/health log with per-reading deltas, hwmon temperatures, identity and error log, plus @aaronge/nvme-health (15-minute health asserts) and @aaronge/nvme-inventory (daily) workflows.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| device? | string | NVMe controller character device, e.g. /dev/nvme0 (not a namespace |
| nvmePath? | string | Path to the nvme-cli binary. |
| useSudo? | boolean | Run nvme through `sudo -n` for the root-only admin commands |
| sudoPath? | string | Path to the sudo binary. |
| sysfsNvmePath? | string | sysfs directory holding the nvmeN controller entries. |
Resources
Read the NVMe health log and hwmon temperatures from nvme-local and assert the drive is healthy: no critical warning, spare above its threshold plus a margin, wear below maxPercentUsed, composite temperature below tempWarnCelsius, and no NEW media errors, error-log entries or over-temperature minutes since the previous reading. New unsafe shutdowns are reported but don't fail the run: they point at power loss, not at the drive. Every 15 minutes, since wear, spare and error counters move slowly a
Daily NVMe inventory from nvme-local: controller identity (model, serial, firmware, link, capacity, temperature thresholds, power-state and self-test support) and the controller's error log. Separate from the 15-minute @aaronge/nvme-health check because none of this changes minute to minute. Asserts the controller is live and the error log is empty.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Spawns a subprocess with Deno.Command().
- models/nvme_health.ts:51 — no reason given
- (extension) — no reason given