Monitor Raid and hd

Hello. I would like to monitor the status software RAID on Linux.
Preferably, this would be a script that runs from cron once an hour,inspects /proc/mdstat, and reports any anomalies. Does anyone have a sample script ?

is there any way also to monitor bad sector or hd problem?

Thank you

 

 

 

 

Top