How to read HDD S.M.A.R.T. attributes?

GergA picture GergA · Mar 31, 2014 · Viewed 15.9k times · Source

I would monitoring the smart HDD-s on my Windows 7 clients.

I would to get the HDD smart attributes without using any vbs file or ready-made tool just looking towards WMI or PowerShell.

I would aggregate that data with ZABBIX monitoring server (use zabbix-sender.exe).

I found a more or less solution for Linux, but I would monitor windows 7 machines HDD.

Has anyone an idea?

Answer

vonPryz picture vonPryz · Mar 31, 2014

Use the WMI API to access SMART data like so,

gwmi -namespace root\wmi -class MSStorageDriver_FailurePredictStatus

There are more examples in the net.