S.m.a.r.t Monitoring Tools Download
Troubleshoot S.M.A.R.T monitoring
Starting with cagent 1.1.4 S.M.A.R.T monitoring of hard disk is supported
Preface
The CloudRadar Agent is able to monitor the health of your hard disks using so-called Self-Monitoring, Analysis and Reporting Technology System (SMART). If the requirements are installed properly you will get all SMART details on the user interface.
SMART details of a hard disk.
If you use a so-called hardware raid (LSI, Adaptec, 3Ware etc.) this article is not applicable. The smartmontools
described below are only compatible with disks attached directly to the mainboard. Health monitoring of disk being part of a hardware raid is supported only for LSI controllers. Read more .
Requirements
Starting with cagent 1.1.4 S.M.A.R.T monitoring of hard disk is supported. It's disabled by default and you must enable it manually. Cagent relies on the external tool smartctl
wich is part of the smartmontools . To use smart monitoring with cagent and cloudradar you must install the smartmontools manually before enabling it. Smartmontools version 7 are required. Only the most recent version of the Linux distributions provide it. Use apt-cache show smartmontools
. Ubuntu 20.04. for example provides version 7.1.
If your distribution ships a version older than 7 you need to install smartmontools manually.
Install Smartmon
on Windows
Even if the download is called smartmontools-7.X.X. win32 -setup.exe it contains a 64bit version for Windows.
If you don't plan to use the smartmontools outside of cagent and the cloudradar monitoring, you can skip the installation of smartd and the documentation.
Minimal installation of smartmontools on windows
It's recommended to update the drive database after the installation.
cd C:\Program Files\smartmontools\bin>
cd C:\Program Files\smartmontools\bin>update-smart-drivedb.exe
Now open the cagent configuration file C:\Program Files\cagent\cagent.conf
with an editor and change the existing lines to
C:\Program Files\cagent\cagent.conf
# Enable S.M.A.R.T monitoring of hard disks
# Path to a smartctl binary (smartctl.exe on windows) version >= 7
# See https://docs.cloudradar.io/configuring-hosts/installing-agents/troubleshoot-s.m.a.r.t-monitoring
# smartctl = "/usr/local/bin/smartctl"
smartctl = "C:\\Program Files\\smartmontools\\bin\\smartctl.exe"
The comment sign #
before smartctl needs to be removed.
Note the escaping of slashes on Windows to specify the path to smartctl.exe
.
Using packages on Ubuntu 20.04 and newer and Debian 10 and newer
Ubuntu 20.04 and Debian 10 provide versions of smartmontools ready to use with agent. Just install with apt-get install smartmontools
This installs /usr/sbin/smartctl
and you can use it with cagent by adding the following lines to /etc/cagent/cagent.conf
# Enable S.M.A.R.T monitoring of hard disks
smartctl = "/usr/sbin/smartctl"
Restart the agent with systemctl restart cagent
after any change to the config file.
Using pre-compiles static binaries on CentOS (any) and older Ubuntu, Debian
Unfortunately older versions of Ubuntu and Debian don't ship smatmontools 7. Smartmontools 6.X are not compatible with cagent.
The developers of the smartmontools provide up to date pre-compiled static binaries which can be installed easily.
curl -L -sS https://999-105252244-gh.circle-artifacts.com/0/builds/smartmontools-linux-x86_64-static-7.2-r5074.tar.gz | \
If the above download link is broken, visit this page for the most recent smartmon downloads. Select the static-7.X-rX.tar.gz download.
You now have smartctl
installed under /usr/local/sbin
which does not interfere or conflict with a version you might have installed with the package manager.
Open the cagent config file /etc/cagent/cagent.conf
and change the already present lines for smart monitoring to
# Enable S.M.A.R.T monitoring of hard disks
# Path to a smartctl binary (smartctl.exe on windows) version >= 7
# See https://docs.cloudradar.io/configuring-hosts/installing-agents/troubleshoot-s.m.a.r.t-monitoring
smartctl = "/usr/local/sbin/smartctl"
# smartctl = "C:\\Program Files\\smartmontools\\bin\\smartctl.exe"
Install smartmontools on Mac
A recent version is available via homebrew.
brew install smartmontools
Install smartmontools from the sources
Installing the smartmontools from the sources should the last measure if you really need SMART monitoring and you cannot use pre-build packages for your distribution.
curl -sSLO https://vorboss.dl.sourceforge.net/project/smartmontools/smartmontools/7.1/smartmontools-7.1.tar.gz
tar xzf smartmontools-7.1.tar.gz
./configure --without-cxx11-option
ln -s /usr/local/sbin/smartctl /usr/sbin/
The above command are just an example. Replace the download link with the most recent version you will find here .
Verify your requirements
If you are in doubt the installation of smartmontools has been successfully try them on the console.
List all supported devices with smartctl --scan
. Maybe you need to specify the full path to the command.
Check the details of a device with smartctl -a <DEVICE>
for example smartctl -a /dev/sdd
.
Source: https://docs.cloudradar.io/configuring-hosts/installing-agents/troubleshooting/troubleshoot-s.m.a.r.t-monitoring
Posted by: recoveryapproved.blogspot.com