Skip to content


Module monitor smartd log files to collect HDD/SSD S.M.A.R.T attributes.

Requirements: * smartmontools

It produces following charts for SCSI devices:

  1. Read Error Corrected

  2. Read Error Uncorrected

  3. Write Error Corrected

  4. Write Error Uncorrected

  5. Verify Error Corrected

  6. Verify Error Uncorrected

  7. Temperature

For ATA devices: 1. Read Error Rate

  1. Seek Error Rate

  2. Soft Read Error Rate

  3. Write Error Rate

  4. SATA Interface Downshift

  5. UDMA CRC Error Count

  6. Throughput Performance

  7. Seek Time Performance

  8. Start/Stop Count

  9. Power-On Hours Count

  10. Power Cycle Count

  11. Unexpected Power Loss

  12. Spin-Up Time

  13. Spin-up Retries

  14. Calibration Retries

  15. Temperature

  16. Reallocated Sectors Count

  17. Reserved Block Count

  18. Program Fail Count

  19. Erase Fail Count

  20. Wear Leveller Worst Case Erase Count

  21. Unused Reserved NAND Blocks

  22. Reallocation Event Count

  23. Current Pending Sector Count

  24. Offline Uncorrectable Sector Count

  25. Percent Lifetime Used


smartd must be running with -A option to write smartd attribute information to files.

For this you need to set smartd_opts (or SMARTD_ARGS, check smartd.service content) in /etc/default/smartmontools:

# dump smartd attrs info every 600 seconds
smartd_opts="-A /var/log/smartd/ -i 600"
You may need to create the smartd directory before smartd will write to it:
mkdir -p /var/log/smartd
Otherwise, all the smartd .csv files may get written to /var/lib/smartmontools (default location). See also for more info on the -A --attributelog=PREFIX command.

smartd appends logs at every run. It’s strongly recommended to use logrotate for smartd files.


  log_path : '/var/log/smartd/'

If no configuration is given, module will attempt to read log files in /var/log/smartd/ directory.