Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 268
GergA Avatar asked Mar 31 '14 09:03

GergA


People also ask

How do you read SMART attributes?

Interpreting SMART attributes in general Name: The name of the SMART attribute. Value: The current, normalized value of the attribute. Higher values are always better (except for temperature for hard disks of some manufacturers). The range is normally 0-100, for some attributes 0-255 (so that 100 resp.

What does the SMART feature shows in a hard drive?

Most modern drives have a feature called S.M.A.R.T. (Opens in a new window) (Self-Monitoring, Analysis, and Reporting Technology), which monitors different drive attributes in an attempt to detect a failing disk.

How do I view SMART errors?

Click on "Reports" at the bottom of the list in the left column, then double-click on "System" then on the resulting item, which should be your report. Scroll down to the "Basic System Check" section and click on the + in front of "Disk Checks" to see the SMART predict failure check results.

What do SMART attributes mean?

SMART stands for Self-Monitoring, Analysis, and Reporting Technology and is a monitoring system included in hard drives that reports on various attributes of the state of a given drive.


1 Answers

Use the WMI API to access SMART data like so,

gwmi -namespace root\wmi -class MSStorageDriver_FailurePredictStatus

There are more examples in the net.

like image 57
vonPryz Avatar answered Sep 20 '22 23:09

vonPryz