AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
5.08k stars 165 forks source link

[FEAT] Add support for sd card health monitoring #563

Open moya2162 opened 8 months ago

moya2162 commented 8 months ago

Is your feature request related to a problem? Please describe.

A lot of people run docker on sbc computers such as the raspberry pi. Likewise a lot of sbc computers use microsd cards. Depending on the manufacturer and model of the sd card, some of them do contain health monitoring features. Unfortunately the readout is not standardized and thus does not have a smart output for smartd to read.

Describe the solution you'd like

There is an open source project called sdmon which aims to provide read support for sd card health monitoring. It is actively developed and more manufacturer are being supported. I was able to confirm it working myself with a kingston industrial microsd card. Others have reported it working with sandisk industrial sd cards too.

I would like to propose for the scrutiny project to add sdmon support and parse the output data to be displayed in scrutiny's dashboard.

Additional context

I have personally had microsd cards fail in a few of my sbc systems. I have read many forum posts of others having gone through same failures, so the issue is common. It might be due to endurance of the drive, or thermal limits over time. Having the ability to monitor the health if supported would be a nice-to-have to be able to plan for a new sd card if failure is starting to show.

AnalogJ commented 8 months ago

This could be an interesting use-case for a custom collector: https://github.com/AnalogJ/scrutiny/tree/master/collector/cmd