get_smart_health
Check SMART disk health: status, temperature, power-on hours, and key attributes for a specified device or all disks. Identify potential drive failures early.
Instructions
Returns SMART disk health: status, temperature, power-on hours, and key attributes via smartctl. device is optional; empty probes all block devices, which is slow with many disks. Requires smartctl and typically root to read /dev. Per-device failures set status to unknown in the errors field; only a missing smartctl is fatal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | optional device name (e.g. sda, nvme0n1). If empty, checks all devices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| devices | Yes |