Do we have a script to monitor if a hard drive is failing or losing integrity?

I am looking for a script that will check if a hard drive is failing or losing integrity. I know about the script that checks S.M.A.R.T status.

@reinamsp ,

Please refer to these procedures.

Please give us your feedback if this suffices your query.

I tried this script and this is what i get:

Event Created at: Tue Sep 11 15:57:07 UTC 2018
Device Name: MA
Logged on User: madalpe
Data: Traceback (most recent call last):
File “”, line 201, in
File “”, line 164, in check
File “”, line 157, in smart
File “”, line 107, in information
IndexError: list index out of range

I ran it on a win 7 pro
16 GB of ram
Intel i5

thank you for your help.

May we ask @reinamsp which of the two scripts above did you use that generated the execution log you shared above?

I used this one: