Skip to content

Feature: Unraid as a Disk Health source - #544

Merged
SandObserver merged 2 commits into
mainfrom
feat/disk-health-unraid
Oct 22, 2026
Merged

SandObserver merged 2 commits into
mainfrom
feat/disk-health-unraid

Conversation

@SandObserver

@SandObserver SandObserver commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add an unraid provider to Disk Health that posts an array { parities disks caches } query to the Unraid GraphQL API with the x-api-key header.
  • Offer every assigned parity, data and cache slot in the bay picker by slot name, skipping DISK_NP slots.
  • Map DISK_OK and DISK_NEW to healthy, DISK_INVALID, DISK_WRONG, DISK_DSBL and DISK_DSBL_NEW to failed, and any other state to no status.
  • Report a configured bay that is absent from the reply as failed, since Unraid omits slots without a device and a missing drive never arrives with its own state.
  • Report size in bytes from the KiB slot size and no temperature for a spun-down drive.
  • Add unraidUrl, unraidApiKey (secret) and unraidHref fields with translations in all six locales, and list Unraid in the README.

Testing
All green. Added 16 tests for the Unraid picker, request, state mapping, missing drive, size and temperature, refused key and link.

Changelog

Added

  • Add Unraid as a Disk Health source.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

Read parity, data and cache drive states and temperatures from the Unraid
API array query. Disabled, missing, wrong and invalid drives show as failed.
@SandObserver SandObserver added the enhancement New feature or request label Oct 22, 2026
Unraid leaves slots without a device out of the array query, so a missing
or pulled drive never arrives with its own state. Treat a configured bay
absent from the reply as a failed drive.
@SandObserver
SandObserver merged commit 786bd26 into main Oct 22, 2026
8 checks passed
@SandObserver
SandObserver deleted the feat/disk-health-unraid branch October 22, 2026 23:47
stackyard-release Bot pushed a commit that referenced this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant