Log full SMART attributes

This commit is contained in:
Andrea Mazzoleni 2026-02-16 15:43:25 +01:00
parent 5e98164b64
commit 696ee97754
9 changed files with 95 additions and 26 deletions

View file

@ -1794,7 +1794,7 @@ The raw flags value (uint, hexadecimal).
.PD
.RE
.TP
.B attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
.B attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>:<type>:<updated>:<when_failed>
Logs the raw value of any assigned SMART attribute.
.RS 4
.PD 0
@ -1819,6 +1819,15 @@ The threshold value (uint).
.HP 4
.I <name>
Name of the attribute.
.HP 4
.I <type>
Type of the attribute: \`prefail\` or \`oldage\`.
.HP 4
.I <updated>
Update method of the attribute: \`always\` or \`offline\`.
.HP 4
.I <when_failed>
If and when the attribute failed: \`never\` or \`past\` or \`now\`.
.PD
.RE
.TP

View file

@ -1121,7 +1121,7 @@ Command Smart And Probe Tags
<flags_decimal> - The raw flags value (uint, decimal).
<flags_hex> - The raw flags value (uint, hexadecimal).
=attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
=attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>:<type>:<updated>:<when_failed>
Logs the raw value of any assigned SMART attribute.
<id> - The SMART attribute ID (uint).
@ -1131,6 +1131,9 @@ Command Smart And Probe Tags
<worst> - The worst value (uint).
<thresh> - The threshold value (uint).
<name> - Name of the attribute.
<type> - Type of the attribute: `prefail` or `oldage`.
<updated> - Update method of the attribute: `always` or `offline`.
<when_failed> - If and when the attribute failed: `never` or `past` or `now`.
=attr:<device_file>:<disk_name>[/<split_index>]:power:active
Logs that the device was confirmed to be in an active power

View file

@ -1167,7 +1167,7 @@ Tags logging specific disk identification and attribute values.
<flags_decimal> - The raw flags value (uint, decimal).
<flags_hex> - The raw flags value (uint, hexadecimal).
attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>:<type>:<updated>:<when_failed>
Logs the raw value of any assigned SMART attribute.
<id> - The SMART attribute ID (uint).
@ -1177,6 +1177,9 @@ Tags logging specific disk identification and attribute values.
<worst> - The worst value (uint).
<thresh> - The threshold value (uint).
<name> - Name of the attribute.
<type> - Type of the attribute: `prefail` or `oldage`.
<updated> - Update method of the attribute: `always` or `offline`.
<when_failed> - If and when the attribute failed: `never` or `past` or `now`.
attr:<device_file>:<disk_name>[/<split_index>]:power:active
Logs that the device was confirmed to be in an active power