Files
pulse/internal
rcourtman 79b6a0974e Name disk wearout as life remaining and log disk alerts once
The Proxmox disk wearout alert read "SSD has less than 10% life
remaining (7% wearout)". The number is percent life remaining, so
"7% wearout" reads as 7% worn and contradicts the first clause, and
the Alerts overview shows that text verbatim. It now reads "SSD life
remaining is 7%", the wording host-agent SMART wearout alerts already
use. The threshold stays in the alert's Threshold field, which the
card and notifications show beside the message; spelling it into the
sentence as "below 10%" would be false at exactly 10%, which alerts.

CheckDiskHealth also logged a failed disk at error and a worn disk at
warn on every evaluation, not when the alert opened. The physical
disk poll runs every 5 minutes by default, so one failed disk logged
an error 288 times a day for as long as it stayed failed, and mock
mode repeated it on every alert tick. Both now log at error or warn
only on the evaluation that opens the alert and at debug afterwards.

The new log test captures through a hook installed in TestMain:
assigning log.Logger inside a test would race with managers that
earlier tests leave running. The alerts contract also said wearout
recovery needs readings of at least 10%; a 10% reading still matches,
so recovery needs readings above it.
2026-10-07 10:10:46 +01:00
..