Время на прочтение1 мин
Количество просмотров24K
Современный жесткий диск не то место где стоит хранить информацию ©
SmatrmonTools + HDDGuardian почти щастье для мониторинга смарт-состояния винтов на клиентской венде.
code.google.com/p/hddguardian
sourceforge.net/apps/trac/smartmontools/wiki
Нашлось как в линуксах, для серверной части и для рабочих станций, с сервисом, с алертами на почту и прочими ништяками, типа групповой установки через GPO.
Сборка smartmontools for windows сервисом для сервера с алертами на почту «икаропки»: www.netpower.fr/smartmontools
Успехов.
-10
Комментарии0
Roman Y. Bogdanov @brj
Пользователь
Smartmontools for Windows Package
(C) 2012-2020 Orsiris de Jong — http://www.netpower.fr
Smartmontools For Windows is an alternate package for smartmontools by Bruce Allen and Christian Franke, that has been created to smoothly install smartmontools as service,
support out of the box mail or local alerts, and configure smart daemon options with a graphical user interface.
Installation can be run silently with command line parameters for massive deployments, or with a graphical user interface.
Configuration files are automatically generated (but you can still enjoy manual editing of course).
A service called «smartd» is created and launched at system startups. This service will enumerate hard disks smartmontools can monitor and send an email and/or show a local message in case of errors.
Everytime smartd detects an issue, the current states of the drives are written to smart.log and an alert is triggered.
When mail / local alerts are triggered, all actions regarding alerts are logged to erroraction.log.
On install, the current states of all drives smartd can detect are written to smartmontools-install-(version).log for warranty issues.
The software has been tested on multiple platforms, nevertheless no responsibility will be taken for any problems or malfunctions that may occur while using this software.
Anyway, feel free to send a mail to ozy [at] netpower.fr for support on my free time.
Upgrade path
The configuration from previous installations is now kept (unless a smartd.conf and/or and erroraction_config.cmd file is provided along with the installer script).
The commandline options of the installer have heavily changed. Be sure to update your mass installer scripts according to new commandline syntax (see below).
Copyrights
The package itself, the python interfaces and it’s source code is licensed under GPLv2.
Additionnaly, it uses the following free software:
- smartmontools by Bruce Allen & Christian Franke, http://smartmontools.sourceforge.net
- smartd-pyngui by Orsiris de Jong, http://github.com/deajan/smartd-pyngui
- Mailsend by Muhammad Muquit, http://www.muquit.com
- Inno Setup by Jordan Russel, http://www.jrsoftware.org
- Gzip by Free Software Foundation, Inc. Copyright (C) 1992, 1993 Jean-loup Gailly, http://gnuwin32.sourceforge.net/
- Base64 by Matthias Gärtner, http://www.rtner.de/software/base64.htm
- dd by Chrysocome and John Newbigin, http://www.chrysocome.net/dd
Binaries
You’ll find the latest binaries at http://www.netpower.fr/smartmontools-win
Useful command line parameters
smartmontools-win-6.6-x.exe [OPTIONS]
[OPTIONS]
/COMPONENTS=»comma separated list of component names»
This setting overrides the default selection.
Valid components are:
core Basic install, cannot be unselected
core\service Install smartd service
core\service\gui Graphical user interface for smartd and alerts
core\service\mailalert On alerts send an email
core\service\localalert On alerts show messages on screen
core\scheduledtestalerts Trigger a test alert every month
fixbadsecttools Fix bad sector script
regext Register SMART right click actions on drives
updatedb Update drive database right after installation
authorlinks Include links to the authors websites
statistics Send anonymous install statistics
/SILENT Installs smartmontools-win silently, without showing the configuration GUI.
/SUPPRESSMSGBOXES Removes the configuration files overwrite confirmation and keep the original configuration (unless new config files are supplied along with the installer).
/HELP Shows all possible commandline switches
See examples below
Unattended examples
You may want to preconfigure smartd settings or alert setting when making an unattended installation.
In that case you can install the package on a test computer, use the GUI to configure the service and alerts, and use the generated configuration files for a mass installation.
Putting a preconfigured smartd.conf file along with the setup exe will load it automatically.
Putting a preconfigured erroraction_config.cmd file along with the setup exe will automatically configure alert options.
Example files can be found at https://github.com/deajan/smartmontools-win/tree/master/unattended
Put the following files in the same directory
- smartmontools-win-7.1-1.exe
- smartd.conf
- erroraction_config.cmd
Then run:
smartmontools-win-7.1-1.exe /COMPONENTS=»core\service,core\service\gui,core\service\mailsupport,updatedb,regext,authorlinks,statistics» /SUPPRESSMSGBOXES /SILENT
Compilation
Compilation works with Inno Setup & Inno Preprocessor 5.5+.
You’ll need to download all the software mentionned above and extract them to the corresponding directories listed in main iss file.
Build python executables
In order to build python executables from source, you’ll need:
pip install pygubu pywin32 cx_freeze
You may then run cxsetup.py in order to create executable versions of smartd-pyngui and erroraction_config
Some Background …
All modern spinning hard disks and SSD drives contain S.M.A.R.T technology which enables the monitoring of various hard drive parameters, as a means of checking drive health and predicting failure.
Ordinarily, this information isn’t visible to most end users through the OS, you can however access the S.M.A.R.T metrics of your drive using a tool such as SmartMonTools.
SmartMonTools can be used to monitor hard drive health and also to run various built-in hard drive self-test operations…
It’s not uncommon for drives to contain bad sectors over time. Drives will usually detect these hard-to-read sectors and remap the data to known good sectors, all in the background without the user even knowing…
However, sometimes the disk controller will not notice the fault and may need a gentle nudge to help it discover the problem. Running a drive self-test can sometimes resolve such issues. In this guide, I’ll explain how you can do it.
Installation on Windows
First, download and install SmartMonTools from https://www.smartmontools.org/
Open SMARTMONTOOLS > SMARTCTL (ADMIN CMD) from the Windows start menu to launch the console
Viewing Help
Run the below command to list all available commands
smartctl –help
Listing Devices
Run the below command to list available devices
smartctl --scan
Viewing Disk Information
To view information about a specific disk
smartctl -x <DEVICE>
smartctl -x /dev/sda
To view the SMART metrics for a given device, run the below command
smartctl -a <DEVICE>
smartctl -a /dev/sda
Self Test
Numerous drive self-tests routines are available, including a ‘Short’ test and ‘Long’ test.
The ‘Short’ test usually takes around 2 minutes to perform a partial scan of the drive subsystems including a partial disk surface scan. On the other hand, the ‘Long’ test will scan each and every individual sector of the drive. This can sometimes resolve disk related performance issues by helping the drive to find hard-to-read sectors and remap them. Note: This scan can take over an hour to complete.
I’d recommend running the ‘Long’ test. There is no risk to losing your data by running this command, however, it may degrade system performance while the scan is being performed.
You can run the ‘Long’ drive self-test as follows:
smartctl -t long
smartctl -t long /dev/sda
You can view the test results by running the following command:
smartctl -a <DEVICE>
smartctl -a /dev/sda
Graphical User Interface
If you’d prefer a graphical user interface rather than using a command line then check out GSmartControl which provides an easy to use interface for the SmartMonTools command line utility.
You can find it here https://gsmartcontrol.sourceforge.io
Final Thoughts
I hope you’ve found this quick guide to be useful.
If you have any tips please feel free to share in the comments below.
- About
- Latest Posts
G’day, I’m a technical solutions consultant based in Perth, Australia that specialises in the Microsoft technology stack, including .NET, Dynamics 365, Azure and general web development etc.
This blog is my place to share my thoughts, helpful solutions and just random nerdy stuff.
smart
disk-health
drive-monitoring
hardware-diagnostics
reliability-prediction
Monitor hard drive health with smartmontools, a set of open source utilities that detect reliability issues and predict failures by reading SMART data.
What is Smartmontools?
smartmontools is an open source software package that monitors internal Self-Monitoring, Analysis and Reporting Technology (SMART) data on hard drives and solid-state drives to detect and predict drive failures.
It includes two utility programs — smartctl and smartd. smartctl is used to inspect and control SMART data on drives, while smartd is a daemon that monitors drives and notifies the user about reliability issues.
Some of the key features of smartmontools include:
- Monitoring drive attributes like reallocated sector count, spin retry count, etc. that indicate drive health.
- Logging SMART data over time to predict failure before it happens.
- Configurable email alerts for reporting drive issues.
- Support for most common types of hard drives (IDE, SATA, SCSI) and many SSDs.
- Easy integration with monitoring tools like Nagios or Check_MK.
- Open source software with contributions from drive vendors and the Linux community.
With its advanced health monitoring and failure prediction capabilities, smartmontools is an essential tool for monitoring drive health and preventing data loss in Linux systems.
Smartmontools Features
Features
- Monitoring of hard disk drive health
- Prediction of potential drive failures
- Reading and reporting of SMART (Self-Monitoring, Analysis and Reporting Technology) data
- Compatibility with most types of hard drives
- Detecting and reporting on various drive attributes related to reliability, such as reallocated sectors count
Pros
Open-source and free to use
Provides valuable insights into hard drive health
Helps identify potential issues before they lead to data loss
Supports a wide range of hard drive types and manufacturers
Cons
Command-line interface may not be user-friendly for some users
Requires technical knowledge to interpret and act on the reported data
Official Links
The Best Smartmontools Alternatives
Top
System & Hardware
and
Hardware Diagnostics
and other similar apps like Smartmontools
CrystalDiskInfo
CrystalDiskInfo is a free disk health monitoring and diagnostics utility for Windows. It enables users to monitor the health and performance of hard disk drives and solid-state drives. Some key features include:Detailed reports on S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) attributes like temperature, bad sectors count, spin up time, etc.Health…
Hard Disk Sentinel
Hard Disk Sentinel is a disk monitoring and data protection software for Windows. It provides advanced tools to monitor the health and performance of hard disk drives and solid state drives.Key features include:Disk health monitoring — Checks HDD/SSD health, temperature and internal operation to detect potential issues and prevent data…
HD Tune
HD Tune is a utility program for Windows designed to test, benchmark, diagnose and tune hard disk drives. Some of the key features include:Drive benchmark tests to measure read, write and access speedsHealth monitoring to check drive errors, performance and temperatureLow-level formatting options for erasing and preparing hard drivesVisual drive…
DriveDx
DriveDx is a hard drive health diagnostics and monitoring utility for Mac computers. It is designed to detect various issues with internal and external hard drives, SSDs, RAID arrays, and disk enclosures before they result in data loss or complete drive failures.Some of the key features of DriveDx include:Monitoring of…
Diskscan
Diskscan is a free and open-source disk space analyzer software for Windows. It helps users understand what is consuming storage space on their computer’s hard drives through an intuitive treemap visualization.When launched, Diskscan performs a scan of all local disks on the computer and collects information on folder sizes and…
HDD Health
HDD Health is a hard drive health monitoring and analysis software designed to monitor hard disk drives (HDDs) for potential issues and prevent data loss. The software provides detailed statistics on drive temperature, performance, health, and lifespan to enable preventative measures before failure occurs.Key features of HDD Health include:Real-time disk…
SMARTReporter
SMARTReporter is an open-source systems monitoring, metric gathering, and reporting software designed specifically for IT teams. It provides centralized monitoring and analytics for physical and virtual infrastructure including servers, VMs, network devices, storage systems, applications, log data, and more.Key capabilities and benefits include:Auto discovery of infrastructure and applicationsMonitoring of system…
Macrorit Disk Scanner
Macrorit Disk Scanner is a free disk space analyzer and duplicate file finder application designed specifically for Mac OS. It provides an intuitive graphical interface to visualize your disk space usage and easily locate files and folders that are taking up the most space.Key features of Macrorit Disk Scanner include:Disk…
Data Lifeguard Diagnostic
Data Lifeguard Diagnostic is a hard drive testing and monitoring software utility created by Western Digital. It is designed specifically for Western Digital internal and external hard drives to scan, test, diagnose, and repair drive issues.Key features of Data Lifeguard Diagnostic include:Comprehensive drive testing — It can perform a quick…
OpenSeaChest
openSeaChest is an open-source, cross-platform hard disk drive diagnostic utility and S.M.A.R.T. monitoring tool. It is designed to test Seagate hard disk drives, but also works with drives from other manufacturers.Some of the key features of openSeaChest include:Reading and monitoring hard drive S.M.A.R.T. attributes to gauge drive healthPerforming drive self-tests…
SMART Utility
SMART Utility by Acronis is a system information and diagnostics software for Windows. It provides detailed insights about various hardware components in your computer.Some of the key features of SMART Utility include:CPU monitoring — Real-time info on CPU usage, temperature, voltages, overclocking etc.RAM monitoring — Details on memory slots, capacity,…
GSmartControl
GSmartControl is an open-source hard disk drive health monitoring and analysis tool for drives that use Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T). It provides an easy way to view S.M.A.R.T attributes from the disk, letting you see metrics like disk temperature, start/stop count, seek errors, spin retry count and more.Key…
HDD Guardian
HDD Guardian is a hard disk drive (HDD) and solid state drive (SSD) monitoring and analysis utility for Windows. It provides detailed information about the health and performance of drives with the goal of detecting potential issues before they cause catastrophic data loss.Key features of HDD Guardian include:Hard drive health…
Pc-Check
Pc-Check is a comprehensive computer diagnostics and benchmarking utility that provides detailed insights into a computer’s hardware and component performance. It is designed to check the health and condition of key hardware like the CPU, GPU, RAM, storage drives, and more in order to detect problems, benchmark capabilities, and optimize…
IsMyHdOK
IsMyHdOK is a free hard disk drive health monitoring and diagnostics utility for Windows. It allows users to easily monitor the health and performance of their hard drives to spot potential issues before they cause data loss.Some of the key features of IsMyHdOK include:Hard drive health status checking — It…
SMARTHDD
SMARTHDD is an advanced hard drive and SSD health monitoring utility that helps prevent data loss by predicting hardware failures before they happen. It uses Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.) to monitor the internal attributes and overall health status of your drives.Key features include:Real-time hard drive health monitoring and…
HDDLife
HDDLife is a hard drive health monitoring and failure prediction utility for Windows. It analyzes the mechanical and physical condition of hard drives in order to provide detailed statistics on their health and lifespan estimates.Key features of HDDLife include:Monitors hard drive health attributes like temperature, shock resistance, spin-up time, etc.Provides…
Hard Drive Inspector
Hard Drive Inspector is a hard disk drive diagnostics and monitoring software for Windows. It allows users to monitor the health and performance of hard drives and predict potential failures before they result in data loss.Key features include:Comprehensive hard drive scans to detect issues like bad sectors, corrupted files, temperature…
Sdparm
sdparm is a command line utility for Linux that allows querying and modifying parameters on SCSI disks and storage devices. It provides a simple way to view and adjust settings like timeout values, queue depths, error recovery options, and more without having to directly edit configuration files.Some key features of…
Windows Surface Scanner
Windows Surface Scanner is a free diagnostic utility created specifically for Microsoft Surface devices including the Surface Pro, Surface Laptop, Surface Book, and Surface Studio. It allows users to thoroughly test their Surface hardware in order to identify potential issues or failures.The app provides a simple interface where users can…
StableBit Scanner
StableBit Scanner is a free disk monitoring and analysis utility designed specifically for Windows. It provides deep insights into the health and performance of your hard drives and SSDs to help prevent data loss and disruption from failing disks.Key features of StableBit Scanner include:SMART attribute monitoring — Scanner checks over…
Stellar Drive Monitor
Stellar Drive Monitor is a free hard drive health monitoring utility for Windows that provides detailed information about the health and performance of hard disk drives and solid state drives. It monitors hard drive parameters like temperature, health status, lifespan, transfer speed, SSD wear out, and more.Key features include:Displays current…
DHE DriveInfo
DHE DriveInfo is a hard drive health monitoring and analysis software for Windows. It provides detailed insights into the performance and health of all hard drives connected to your computer to help prevent catastrophic data loss due to failing hard drives.Key features include:Comprehensive hard drive statistics like temperature, bad sectors,…