Log the normalized, worst and threshold value of SMART attributes

This commit is contained in:
Andrea Mazzoleni 2026-02-16 10:47:43 +01:00
parent ae453435f0
commit 2019aa4bb6
9 changed files with 135 additions and 93 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>:<value_decimal>:<value_hex>
.B attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
Logs the raw value of any assigned SMART attribute.
.RS 4
.PD 0
@ -1802,11 +1802,23 @@ Logs the raw value of any assigned SMART attribute.
.I <id>
The SMART attribute ID (uint).
.HP 4
.I <value_decimal>
.I <raw_decimal>
The raw attribute value (uint, decimal).
.HP 4
.I <value_hex>
.I <raw_hex>
The raw attribute value (uint, hexadecimal).
.HP 4
.I <norm>
The normalized value (uint).
.HP 4
.I <worst>
The worst value (uint).
.HP 4
.I <thresh>
The threshold value (uint).
.HP 4
.I <name>
Name of the attribute.
.PD
.RE
.TP

View file

@ -1121,12 +1121,16 @@ 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>:<value_decimal>:<value_hex>
=attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
Logs the raw value of any assigned SMART attribute.
<id> - The SMART attribute ID (uint).
<value_decimal> - The raw attribute value (uint, decimal).
<value_hex> - The raw attribute value (uint, hexadecimal).
<raw_decimal> - The raw attribute value (uint, decimal).
<raw_hex> - The raw attribute value (uint, hexadecimal).
<norm> - The normalized value (uint).
<worst> - The worst value (uint).
<thresh> - The threshold value (uint).
<name> - Name of the attribute.
=attr:<device_file>:<disk_name>[/<split_index>]:power:active
Logs that the device was confirmed to be in an active power

View file

@ -1167,12 +1167,16 @@ 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>:<value_decimal>:<value_hex>
attr:<device_file>:<disk_name>[/<split_index>]:<id>:<raw_decimal>:<raw_hex>:<norm>:<worst>:<thresh>:<name>
Logs the raw value of any assigned SMART attribute.
<id> - The SMART attribute ID (uint).
<value_decimal> - The raw attribute value (uint, decimal).
<value_hex> - The raw attribute value (uint, hexadecimal).
<raw_decimal> - The raw attribute value (uint, decimal).
<raw_hex> - The raw attribute value (uint, hexadecimal).
<norm> - The normalized value (uint).
<worst> - The worst value (uint).
<thresh> - The threshold value (uint).
<name> - Name of the attribute.
attr:<device_file>:<disk_name>[/<split_index>]:power:active
Logs that the device was confirmed to be in an active power