[smartmontools-support] Avoid email every day for non-changing state

Christian Franke Christian.Franke at t-online.de
Mon Sep 18 11:00:34 CEST 2023


Petter Reinholdtsen wrote:
> I use the Debian edition of smartmontool on several machines, and two of
> these send an email like this every night, while one of them also send a
> message with "Device: /dev/sda [SAT], 16 Offline uncorrectable sectors"
> every night.  The end result is that I get repeated messages about what
> seem to me like an ignorable "issue", which is not getting worse.
>
> -------------------- Start of forwarded message --------------------
> To: pere at hungry.com
> Subject: SMART error (CurrentPendingSector) detected on host: laptop
> Date: Wed, 13 Sep 2023 05:03:13 +0200
> From: root <root at laptop.local>
>
> This message was generated by the smartd daemon running on:
>
>     host name:  laptop
>     DNS domain: [Empty]
>
> The following warning/error was logged by the smartd daemon:
>
> Device: /dev/sda [SAT], 16 Currently unreadable (pending) sectors
>
> Device info:
> ST500LT012-9WS142, S/N:S0V487C2, WWN:5-000c50-060d4a051, FW:0001SDM1, 500 GB
>
> ...
> -------------------- End of forwarded message --------------------
>
> Would it be possible to change smartd to only report _new_ or changed
> issues, for example only when the number of unreadable sectors change?

- Add '-C 197+' to smartd.conf, or
- add '-v 197,increasing' to smartd.conf, or
- create a local drive database entry with '-v 197,increasing'.

To disable tracking of this attribute:
- add '-C 0' to smartd.conf, or
- rename this attribute with '-v 197,...' option in smartd.conf or a 
local drive database entry.

-- 
Regards,
Christian



More information about the Smartmontools-support mailing list