Telegraf does not report SMART attributes

Hi there,

I’m trying to get telegraf to report SMART sensor values of my disks. Generally it seems to work as some smart values are reported, but the actual attributes are missing, something like the following from the docs

smartctl_attributes,model=SanDisk\ pSSD,name=Reallocated_Sector_Ct,serial=06c9f4c44,type=sat,wwn=5001b4409f6c444c raw_value=0i,threshold=0i,value=100i,worst=100i 1711480345675066854

Can someone point me a way what’s wrong?

Thanks in advance

telegraf.conf
[[outputs.influxdb]]
  urls = ["http://influxdb:8086"] # Name des InfluxDB-Containers
  database = "smart_metrics"
  timeout = "5s"

#[[inputs.smartctl]]
#  devices_include = ["/dev/sda", "/dev/sdc", "/dev/sdg"]
#  use_sudo = true
#  interval = "1m"

[[inputs.smart]]
  devices = ["/dev/sda", "/dev/sdc", "/dev/sdg"]
  use_sudo = true
  attributes = true
  timeout = "1m"
  nocheck = "never"
Test run for smart plugin
$> docker run --rm -ti -v ./telegraf.conf:/etc/telegraf/telegraf.conf:ro --device /dev/sda --device /dev/sdc --device /dev/sdg golift/telegraf --test
2025-10-15T17:26:15Z I! Loading config: /etc/telegraf/telegraf.conf
2025-10-15T17:26:15Z I! Starting Telegraf 1.36.2 brought to you by InfluxData the makers of InfluxDB
2025-10-15T17:26:15Z I! Available plugins: 239 inputs, 9 aggregators, 35 processors, 26 parsers, 65 outputs, 6 secret-stores
2025-10-15T17:26:15Z I! Loaded inputs: smart
2025-10-15T17:26:15Z I! Loaded aggregators:
2025-10-15T17:26:15Z I! Loaded processors:
2025-10-15T17:26:15Z I! Loaded secretstores:
2025-10-15T17:26:15Z W! Outputs are not used in testing mode!
2025-10-15T17:26:15Z I! Tags enabled: host=be8819132a5c
2025-10-15T17:26:15Z W! [agent] The default value of 'skip_processors_after_aggregators' will change to 'true' with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to 'false'!
> smart_device,device=sdc,host=be8819132a5c exit_status=0i 1760549175000000000
> smart_device,device=sdg,host=be8819132a5c exit_status=0i 1760549175000000000
> smart_device,device=sda,host=be8819132a5c exit_status=0i 1760549175000000000
Test run for smartctl plugin
$> docker run --rm -ti -v ./telegraf.conf:/etc/telegraf/telegraf.conf:ro --device /dev/sda --device /dev/sdc --device /dev/sdg golift/telegraf --test
2025-10-15T17:27:38Z I! Loading config: /etc/telegraf/telegraf.conf
2025-10-15T17:27:38Z I! Starting Telegraf 1.36.2 brought to you by InfluxData the makers of InfluxDB
2025-10-15T17:27:38Z I! Available plugins: 239 inputs, 9 aggregators, 35 processors, 26 parsers, 65 outputs, 6 secret-stores
2025-10-15T17:27:38Z I! Loaded inputs: smartctl
2025-10-15T17:27:38Z I! Loaded aggregators:
2025-10-15T17:27:38Z I! Loaded processors:
2025-10-15T17:27:38Z I! Loaded secretstores:
2025-10-15T17:27:38Z W! Outputs are not used in testing mode!
2025-10-15T17:27:38Z I! Tags enabled: host=0bf7cb56d4c8
2025-10-15T17:27:38Z W! [agent] The default value of 'skip_processors_after_aggregators' will change to 'true' with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to 'false'!
> smartctl,host=0bf7cb56d4c8,name=/dev/sda,serial=WD-WX21D690LK4K,type=scsi capacity=6001175126016i,firmware="",health_ok=false,logical_block_size=512i,rotation_rate=5400i,temperature=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sda,page=read,serial=WD-WX21D690LK4K,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sda,page=write,serial=WD-WX21D690LK4K,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sda,page=verify,serial=WD-WX21D690LK4K,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl,host=0bf7cb56d4c8,name=/dev/sdc,serial=WD-WCC4E7JSELUR,type=scsi capacity=4000787030016i,firmware="",health_ok=false,logical_block_size=512i,rotation_rate=5400i,temperature=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdc,page=read,serial=WD-WCC4E7JSELUR,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdc,page=write,serial=WD-WCC4E7JSELUR,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdc,page=verify,serial=WD-WCC4E7JSELUR,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl,host=0bf7cb56d4c8,name=/dev/sdg,serial=S2R6NX0HB10236N,type=scsi capacity=250059350016i,firmware="",health_ok=false,logical_block_size=512i,temperature=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdg,page=read,serial=S2R6NX0HB10236N,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdg,page=write,serial=S2R6NX0HB10236N,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000
> smartctl_scsi_error_counter_log,host=0bf7cb56d4c8,name=/dev/sdg,page=verify,serial=S2R6NX0HB10236N,type=scsi correction_algorithm_invocations=0i,errors_corrected_by_eccdelayed=0i,errors_corrected_by_eccfast=0i,errors_corrected_by_rereads_rewrites=0i,gigabytes_processed="",total_errors_corrected=0i,total_uncorrected_errors=0i 1760549259000000000