Skip to content

feat: ✨ S.M.A.R.T status report - #1558

Open
GerardPolloRebozado wants to merge 3 commits into
moghtech:mainfrom
GerardPolloRebozado:feat/smart-disk-monitoring
Open

feat: ✨ S.M.A.R.T status report#1558
GerardPolloRebozado wants to merge 3 commits into
moghtech:mainfrom
GerardPolloRebozado:feat/smart-disk-monitoring

Conversation

@GerardPolloRebozado

Copy link
Copy Markdown

This PR is a basic implementation of S.M.A.R.T status report by showing a badge in the list of drives
image
By having this status a new alert could also be implemented so if a device starts to fail it send alerts about it.
In order for this to work the docker compose needs to have access to the devices to check its health, this can be done by enabling SYS_RAWIO or setting the container as privileged.
Also the device needs to be added in the devices property like this:

    devices:
      - /dev/nvme0n1

This is just an initial implementation on how the data could be gathered, I have not found another way to it with less privileges, other monitoring tools like scrutiny require same permissions. The current state of the PR only reports healthy or not and it does not trigger any alerts.
In the case the container doesn't have enough permissions the health will just show N/A

@GerardPolloRebozado
GerardPolloRebozado marked this pull request as ready for review August 14, 2026 10:21
@GerardPolloRebozado

Copy link
Copy Markdown
Author

I have also implemented showing both temperature and power on hours and alerts when there are high temperatures or a failed SMART test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant