`smart` plugin doesn't report health status and other fields
Relevant telegraf.conf:
[[inputs.smart]]
interval = "20s"
use_sudo = true
path_smartctl = "/usr/sbin/smartctl"
enable_extensions = ["auto-on"]
attributes = true
timeout = "15s"
nocheck="standby"
System info:
The plugin has not been updated since this version of Telegraf.
# telegraf --version
Telegraf 1.19.1 (git: HEAD 9f8be047)
[root@lab-eu-1a-xxx-yyy~]# uname -r
3.10.0-1127.el7.x86_64
[root@lab-eu-1a-xxx-yyy~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
# smartctl --version
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See http://www.gnu.org for further details.
smartmontools release 7.0 dated 2018-12-30 at 14:47:55 UTC
smartmontools SVN rev 4883 dated 2018-12-30 at 14:48:54
smartmontools build host: x86_64-redhat-linux-gnu
smartmontools build with: C++98, GCC 4.8.5 20150623 (Red Hat 4.8.5-39)
# nvme --version
nvme version 1.8.1
# cat /etc/sudoers.d/telegraf
Cmnd_Alias SMARTCTL = /usr/sbin/smartctl
telegraf ALL=(ALL) NOPASSWD: SMARTCTL
Defaults!SMARTCTL !logfile, !syslog, !pam_session
Cmnd_Alias NVME = /usr/sbin/nvme
telegraf ALL=(ALL) NOPASSWD: NVME
Defaults!NVME !logfile, !syslog, !pam_session
Steps to reproduce:
- Run Telegraf setup like above.
Expected behavior:
health_ok of a disk is reported.
Actual behavior:
health_ok of a disk is not reported.
Additional info:
[root@lab-eu-1a-0504-h12 ~]# telegraf --input-filter smart --test | grep smart_device
2021-10-25T07:01:43Z I! Starting Telegraf 1.19.1
2021-10-25T07:01:43Z I! Using config file: /etc/telegraf/telegraf.conf
> smart_device,capacity=1200243695616,device=sdj,enabled=Enabled,host=lab-eu-1a-xxx-yyy,model=HUC101812CSS204,serial_no=XYZ exit_status_count=1,exit_status_max=0,exit_status_mean=0,exit_status_min=0,exit_status_sum=0,temp_c_count=1,temp_c_max=29,temp_c_mean=29,temp_c_min=29,temp_c_sum=29 1635145304000000000
As can be seen, plugin correctly reports temperature and exit_status is 0, so no errors occurred. But fields: health_ok, read_error_rate, seek_error, udma_crc_errors and tag wwn are missing.
There are no permission issues, as I can run a proper scan as telegraf user:
[root@lab-eu-1a-xxx-yyy~]# sudo -H -u telegraf bash -c 'sudo smartctl --info --health --attributes --tolerance=verypermissive --nocheck standby --format=brief -d scsi /dev/sdb'
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: HGST
Product: HUC101812CSS204
Revision: FJ23
Compliance: SPC-4
User Capacity: 1,200,243,695,616 bytes [1.20 TB]
Logical block size: 512 bytes
Formatted with type 2 protection
8 bytes of protection information per logical block
LU is fully provisioned
Rotation Rate: 10000 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000cca0800d108c
Serial number: 0EG75RWG
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Mon Oct 25 07:20:59 2021 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature: 30 C
Drive Trip Temperature: 50 C
Manufactured in week 40 of year 2016
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 94
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 8799
Elements in grown defect list: 0
Vendor (Seagate Cache) information
Blocks sent to initiator = 16096571812741120
Adding SUID to /usr/bin/smartctl also didn't help.
[root@lab-eu-1a-xxx-yyy ~]# sudo -H -u telegraf bash -c 'sudo smartctl --scan'
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/sdc -d scsi # /dev/sdc, SCSI device
/dev/sdd -d scsi # /dev/sdd, SCSI device
/dev/sde -d scsi # /dev/sde, SCSI device
/dev/sdf -d scsi # /dev/sdf, SCSI device
/dev/sdg -d scsi # /dev/sdg, SCSI device
/dev/sdh -d scsi # /dev/sdh, SCSI device
/dev/sdi -d scsi # /dev/sdi, SCSI device
/dev/sdj -d scsi # /dev/sdj, SCSI device
/dev/sdk -d scsi # /dev/sdk, SCSI device
/dev/sdl -d scsi # /dev/sdl, SCSI device
/dev/sdm -d scsi # /dev/sdm, SCSI device
/dev/sdn -d scsi # /dev/sdn, SCSI device
/dev/sdo -d scsi # /dev/sdo, SCSI device
/dev/sdp -d scsi # /dev/sdp, SCSI device
hi there, any update yet? I just encountered the same issue
i seem to have the same issue
Hi,
Telegraf 1.19.1 (git: HEAD 9f8be047)
There was an issue resolved with the smart plugin not to long ago that fix some of the metric parsing issues. Can someone please try v1.22.2 or later and let me know what fields are still not showing up?
But fields: health_ok, read_error_rate, seek_error, udma_crc_errors and tag wwn are missing.
The wwn tag looks for LU WWN Device Id:, and I do not see that in your smartctl output. That field may not be available for your device.
The health_ok field looks for SMART overall-health self-assessment test result or SMART Health Status. Your output shows SMART support is, which means we may need to add yet another option to look for.
The remaining fields are looked for in the device attributes. Can you please provide the output of smartctl -a <device path> as well, please?
Thanks!
Same issue for me: telegraf --test returns the correct information with exit_status 0, however exit_status 2 is reported (to influxdb) and other fields are missing. I am running Telegraf 1.22.4 in Docker.
Additional Info:
- Strangely enough, when running a second process in the container the fields are reported correctly by the second process.
- Telegraf version 1.15 was the last working version for me.
@simonengel, @kjboa, @zzcpower,
Please provide the full output of smartctl -a <device path> for the device in question and let me know exactly what fields are missing?
Sure, here the output for a WD Red drive. However this behavior applies to all HDDs and SSDs in the system.
Fields submitted: exit_status
Fields missing: read_error_rate , seek_error_rate , temp_c , udma_crc_errors , health_ok
Output of smartctl -a /dev/sda:
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.4.0-113-generic] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Red
Device Model: WDC WD40EFRX-68N32N0
Serial Number: <sn>
LU WWN Device Id: <wwn>
Firmware Version: 82.00A82
User Capacity: 4.000.787.030.016 bytes [4,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5319
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue May 24 19:56:01 2022 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (44520) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 472) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x303d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
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 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 193 161 021 Pre-fail Always - 5308
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 129
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 049 049 000 Old_age Always - 37891
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 124
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 33
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 108
194 Temperature_Celsius 0x0022 116 104 000 Old_age Always - 34
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 35408 -
# 2 Short offline Completed without error 00% 17364 -
# 3 Short offline Completed without error 00% 14863 -
# 4 Short offline Completed without error 00% 14118 -
# 5 Short offline Completed without error 00% 13400 -
# 6 Short offline Completed without error 00% 12658 -
# 7 Short offline Completed without error 00% 11987 -
# 8 Short offline Completed without error 00% 11244 -
# 9 Extended offline Completed without error 00% 10871 -
#10 Short offline Completed without error 00% 10501 -
#11 Short offline Completed without error 00% 10231 -
#12 Short offline Completed without error 00% 9782 -
#13 Short offline Completed without error 00% 9038 -
#14 Short offline Completed without error 00% 8319 -
#15 Short offline Completed without error 00% 7575 -
#16 Short offline Completed without error 00% 6832 -
#17 Extended offline Completed without error 00% 6459 -
#18 Short offline Completed without error 00% 6113 -
#19 Short offline Completed without error 00% 5370 -
#20 Short offline Completed without error 00% 4652 -
#21 Short offline Completed without error 00% 3912 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
@simonengel, or anyone else on this issue,
I have put up #11268 with some additional logging. Would you, or anyone else on this issue, be willing to download the artifact for your platform that was attached by the telegraf-tiger and try running it? I would like to get 1) all the additional output and 2) have you run with the exact systemctl command that telegraf is using as well.
read_error_rate , seek_error_rate , temp_c , udma_crc_errors
These are all attributes that are parsed in the same manner, so something is not getting parsed correctly or matching a regex.
health_ok
Above I incorrectly said we might need to add SMART support is, however, that is not the field that we need. The field is in your output above as SMART overall-health self-assessment test result so this should be working :\ Hopefully, we can see what regex is not matching correctly.
Thanks!
I'm experiencing the same issue. I'm running a proxmox server with 1 WD red conected by USB, 1 internal HDD toshiba and 1SSD samsung.
I'm only able to see data for the WD red. Output of smartctl
smartctl --health --info --attributes --tolerance=verypermissive --format=brief /dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RBNX0HA17193Y
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-1-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 850 EVO 500GB
Serial Number: S2RBNX0HA17193Y
LU WWN Device Id: 5 002538 d415a7111
Firmware Version: EMT02B6Q
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Jul 9 14:01:24 2022 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct PO--CK 100 100 010 - 0
9 Power_On_Hours -O--CK 097 097 000 - 14419
12 Power_Cycle_Count -O--CK 096 096 000 - 3970
177 Wear_Leveling_Count PO--C- 094 094 000 - 114
179 Used_Rsvd_Blk_Cnt_Tot PO--C- 100 100 010 - 0
181 Program_Fail_Cnt_Total -O--CK 100 100 010 - 0
182 Erase_Fail_Count_Total -O--CK 100 100 010 - 0
183 Runtime_Bad_Block PO--C- 100 100 010 - 0
187 Uncorrectable_Error_Cnt -O--CK 100 100 000 - 0
190 Airflow_Temperature_Cel -O--CK 065 041 000 - 35
195 ECC_Error_Rate -O-RC- 200 200 000 - 0
199 CRC_Error_Count -OSRCK 100 100 000 - 0
235 POR_Recovery_Count -O--C- 099 099 000 - 29
241 Total_LBAs_Written -O--CK 099 099 000 - 21592984626
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
smartctl --health --info --attributes --tolerance=verypermissive --format=brief /dev/disk/by-id/ata-TOSHIBA_MK5065GSXF_12UICIPTT
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-1-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MK..65GSX
Device Model: TOSHIBA MK5065GSXF
Serial Number: 12UICIPTT
LU WWN Device Id: 5 000039 3c3b8eef5
Firmware Version: GV108B
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sat Jul 9 14:03:05 2022 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate PO-R-- 100 100 050 - 0
2 Throughput_Performance P-S--- 100 100 050 - 0
3 Spin_Up_Time POS--K 100 100 001 - 2133
4 Start_Stop_Count -O--CK 100 100 000 - 15249
5 Reallocated_Sector_Ct PO--CK 100 100 050 - 597
7 Seek_Error_Rate PO-R-- 100 100 050 - 0
8 Seek_Time_Performance P-S--- 100 100 050 - 0
9 Power_On_Hours -O--CK 069 069 000 - 12513
10 Spin_Retry_Count PO--CK 253 100 030 - 0
12 Power_Cycle_Count -O--CK 100 100 000 - 9610
191 G-Sense_Error_Rate -O--CK 100 100 000 - 477
192 Power-Off_Retract_Count -O--CK 100 100 000 - 286
193 Load_Cycle_Count -O--CK 025 025 000 - 755975
194 Temperature_Celsius -O---K 100 100 000 - 42 (Min/Max 14/47)
196 Reallocated_Event_Count -O--CK 100 100 000 - 63
197 Current_Pending_Sector -O--CK 100 100 000 - 0
198 Offline_Uncorrectable ----CK 100 100 000 - 0
199 UDMA_CRC_Error_Count -O--CK 200 253 000 - 0
220 Disk_Shift -O---- 100 100 000 - 41
222 Loaded_Hours -O--CK 085 085 000 - 6085
223 Load_Retry_Count -O--CK 100 100 000 - 0
224 Load_Friction -O---K 100 100 000 - 0
226 Load-in_Time -OS--K 100 100 000 - 233
240 Head_Flying_Hours P----- 100 100 001 - 0
254 Free_Fall_Sensor -O--CK 100 100 000 - 148
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
My telegraf config:
[[inputs.smart]]
## Optionally specify the path to the smartctl executable
path_smartctl = "/usr/sbin/smartctl"
path_nvme = "/usr/sbin/nvme"
use_sudo = true
read_method = "sequential"
devices = [
"/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RBNX0HA17193Y -d scsi",
"/dev/disk/by-id/ata-TOSHIBA_MK5065GSXF_12UICIPTT -d scsi",
"/dev/disk/by-id/ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6 -d sat"]
attributes = true
Query in telegraf which yields to always a 0 in _value:
from(bucket: "telegraf")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "smart_attribute")
|> filter(fn: (r) => r["device"] == "ata-TOSHIBA_MK5065GSXF_12UICIPTT" or r["device"] == "ata-Samsung_SSD_850_EVO_500GB_S2RBNX0HA17193Y")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
Version (Should be newest avaialable with apt):
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-1-pve] (local build)
Telegraf 1.23.1 (git: HEAD 686717fe)
@nck974 - can you please run with the [[outputs.file]] output and see what telegraf is producing directly?
@simonengel - have you had a chance to look at my PR?
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!
@nck974 - can you please run with the
[[outputs.file]]output and see what telegraf is producing directly?@simonengel - have you had a chance to look at my PR?
Sorry I completly forgot to do this:
root@XXXXXXXXX:/tmp# tail -n 500 -f metrics.out | grep smart
smart_attribute,capacity=500107862016,device=ata-Samsung_SSD_850_EVO_500GB_S2RBNX0HA17193Y,host=XXXXXXXXX,id=194,name=Temperature_Celsius,power=ACTIVE,serial_no=S2RBNX0HA17193Y raw_value=0i 1658867520000000000
smart_device,capacity=500107862016,device=ata-Samsung_SSD_850_EVO_500GB_S2RBNX0HA17193Y,host=XXXXXXXXX,power=ACTIVE,serial_no=S2RBNX0HA17193Y exit_status=0i,temp_c=0i 1658867520000000000
smart_attribute,capacity=500107862016,device=ata-TOSHIBA_MK5065GSXF_12UICIPTT,host=XXXXXXXXX,id=194,name=Temperature_Celsius,power=ACTIVE,serial_no=12UICIPTT raw_value=0i 1658867520000000000
smart_device,capacity=500107862016,device=ata-TOSHIBA_MK5065GSXF_12UICIPTT,host=XXXXXXXXX,power=ACTIVE,serial_no=12UICIPTT temp_c=0i,exit_status=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=POSR-K,host=XXXXXXXXX,id=1,model=WDC\ WD40EFZX-68AWUN0,name=Raw_Read_Error_Rate,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=51i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=POS--K,host=XXXXXXXXX,id=3,model=WDC\ WD40EFZX-68AWUN0,name=Spin_Up_Time,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=253i,worst=253i,threshold=21i,raw_value=1833i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=4,model=WDC\ WD40EFZX-68AWUN0,name=Start_Stop_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 value=100i,worst=100i,threshold=0i,raw_value=13i,exit_status=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=PO--CK,host=XXXXXXXXX,id=5,model=WDC\ WD40EFZX-68AWUN0,name=Reallocated_Sector_Ct,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=140i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-OSR-K,host=XXXXXXXXX,id=7,model=WDC\ WD40EFZX-68AWUN0,name=Seek_Error_Rate,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=9,model=WDC\ WD40EFZX-68AWUN0,name=Power_On_Hours,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=100i,threshold=0i,raw_value=607i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=10,model=WDC\ WD40EFZX-68AWUN0,name=Spin_Retry_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=253i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=11,model=WDC\ WD40EFZX-68AWUN0,name=Calibration_Retry_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=253i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=12,model=WDC\ WD40EFZX-68AWUN0,name=Power_Cycle_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=100i,threshold=0i,raw_value=3i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=192,model=WDC\ WD40EFZX-68AWUN0,name=Power-Off_Retract_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 worst=200i,threshold=0i,raw_value=0i,exit_status=0i,value=200i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=193,model=WDC\ WD40EFZX-68AWUN0,name=Load_Cycle_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=0i,raw_value=86i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O---K,host=XXXXXXXXX,id=194,model=WDC\ WD40EFZX-68AWUN0,name=Temperature_Celsius,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=108i,worst=107i,threshold=0i,raw_value=42i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=196,model=WDC\ WD40EFZX-68AWUN0,name=Reallocated_Event_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 worst=200i,threshold=0i,raw_value=0i,exit_status=0i,value=200i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=197,model=WDC\ WD40EFZX-68AWUN0,name=Current_Pending_Sector,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=----CK,host=XXXXXXXXX,id=198,model=WDC\ WD40EFZX-68AWUN0,name=Offline_Uncorrectable,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=253i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=-O--CK,host=XXXXXXXXX,id=199,model=WDC\ WD40EFZX-68AWUN0,name=UDMA_CRC_Error_Count,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=200i,worst=200i,threshold=0i,raw_value=0i 1658867520000000000
smart_attribute,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,fail=-,flags=---R--,host=XXXXXXXXX,id=200,model=WDC\ WD40EFZX-68AWUN0,name=Multi_Zone_Error_Rate,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 exit_status=0i,value=100i,worst=253i,threshold=0i,raw_value=0i 1658867520000000000
smart_device,capacity=4000787030016,device=ata-WDC_WD40EFZX-68AWUN0_WD-WX42DC193DU6,enabled=Enabled,host=XXXXXXXXX,model=WDC\ WD40EFZX-68AWUN0,power=ACTIVE,serial_no=WD-WX42DC193DU6,wwn=50014ee2bfaf3002 seek_error_rate=0i,temp_c=42i,udma_crc_errors=0i,exit_status=0i,health_ok=true,read_error_rate=0i 1658867520000000000
I tested in:
Telegraf 1.23.3 (git: HEAD 73121bd1)
@nck974 - can you download an artifact from PR #11566 and run it and collect the output, please? It appears only one attribute for those devices is showing up. The regex should be able to parse those attributes, but something isn't including others.
Thanks!
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!