Get a report on Matrix or Slack when a drive (HDD or SDD) is failing.
For large infrastructures with 24/7 availability, available monitoring solutions are designed to keep them up-and-running by analyzing numerous parameters in real-time. For smaller setup, without high availability requirement and/or low resources, maintaining the integrity of the data is the primary resource to monitor. In that setup, other failures (such as RAM, network etc) are dealt with as they arise. Failing Disk Reporter is a simple tool checking periodically that drives are functional and reports when a failing drive is detected. Reporting to a Matrix room and a Slack channel are supported.
Failing drives are detected using Smartmontools using the S.M.A.R.T. interface. Smartmontools supports drives connected directly on the motherboard using SATA ports from the southbridge and drives connected on hardware RAID cards.
See refs page for tarball and executable.
Executables are statically linked binaries obtained with disabled cgo:
CGO_ENABLED=0 go build *go
Install the failing-disk-reporter package available on the AUR.
/usr/local/bin, in that case change path to
Configure FDR in
Enable and start the timer:
systemctl enable failing-disk-reporter.timer systemctl start failing-disk-reporter.timer
TOKENparameter of the Matrix reporter.
ROOMparameter of the Matrix reporter.
urlparameter of the Slack reporter.
FDR can be tested with (
-debug for increasing verbosity and
-report for sending reports ignoring intervals configured in
fdr -config config/fdr.toml -debug -report
Failing Disk Reporter is distributed under the Mozilla Public License Version 2.0 (see /LICENSE).
Copyright (C) 2020-2022 Charles E. Vejnar