Get disk health
omv_get_disk_healthChecks one disk's SMART health — overall status, temperature, attributes, and self-test log — and flags failures or bad sectors in plain sentences so you can tell if /dev/sda is failing.
Instructions
One disk's SMART picture: overall status, temperature, identity block, attributes, and self-test log. Use it when asked "is /dev/sda failing?", "show the SMART data for this disk", or "did the self-test pass?"; to find the device names, omv_list_disks. device must be a disk omv_list_disks lists; anything else is refused. concerns says in plain sentences what looks wrong (a non-GOOD overall status, a failed attribute, a nonzero reallocated, pending, or uncorrectable sector count, a failed self-test) and is empty when nothing does; start there. When SMART is not available for the disk (its information says so, or it has no attributes and monitoring is off, as on a virtual disk), smart_unavailable is true and notes says so: that is a note, not a concern, and smart_status (often BAD_STATUS then) is OMV's raw word for it and no verdict, so do not call the disk failing. attributes are the SMART table: value is normalized (higher is better, compare with threshold) and raw is the vendor's number. self_tests lists the disk's own tests, most recent first. A disk SMART cannot read (some USB bridges) answers with what it could and a note for each part that failed. Reading only: this never starts a self-test.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>"
},
"name": "omv_get_disk_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | The disk's device file as omv_list_disks gives it, for example /dev/sda; sda also works. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| model | No | ||
| notes | No | ||
| device | Yes | ||
| concerns | Yes | ||
| attributes | Yes | ||
| self_tests | Yes | ||
| information | No | ||
| smart_status | No | ||
| temperature_c | No | ||
| information_text | No | ||
| smart_unavailable | No |