The latest ‘smart’ plugin does not detect my spinning disks. I grabbed the latest version from github but its behavior is the same so I think this is a bug.
I think I traced it down to line 163:
CMD="smartctl -d ata -v 9,raw48 -A $D"
# smartctl -d ata -v 9,raw48 -A /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.3-arch1-1] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: Invalid argument
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
When I remove the -d ata
from the command line it works fine.
Complete output from smartctl for one of the drives:
# smartctl -v 9,raw48 -A /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.3-arch1-1] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 133 133 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 177 177 024 Pre-fail Always - 345 (Average 397)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 88
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 165
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 88
22 Helium_Level 0x0023 091 091 025 Pre-fail Always - 91
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 107
193 Load_Cycle_Count 0x0012 100 100 000 Old_age Always - 107
194 Temperature_Celsius 0x0002 176 176 000 Old_age Always - 34 (Min/Max 25/42)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0
The information section from smartctl -a /dev/sda
:
=== START OF INFORMATION SECTION ===
Model Family: HGST Ultrastar He8
Device Model: HGST HUH728080ALN600
Serial Number: >redacted>
LU WWN Device Id: 5 000cca 23be82804
Firmware Version: A4GNT907
User Capacity: 8,001,563,222,016 bytes [8.00 TB]
Sector Size: 4096 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Aug 26 08:38:39 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled