Hi,
I am using the latest Telegraf v1.12.5 running on FreeBSD server.
I configured input.smart plugin as folows:
[[inputs.smart]]
# path = “/usr/bin/smartctl”
# use_sudo = false
# nocheck = “standby”
attributes = false
# excludes = [ “/dev/pass6” ]
# devices = [ “/dev/ada0 -d atacam” ]
# timeout = “30s”
It seems that this plugin is not working as expected for my SMART enabled device – smart_attribute measurement is not created and no records are added.
Any help will be appreciated.
Here is the output of smartctl commands:
zodiac: # smartctl --scan
/dev/ada0 -d atacam # /dev/ada0, ATA device
/dev/ses0 -d atacam # /dev/ses0, ATA device
zodiac: # smartctl --info --health --attributes --tolerance=verypermissive --nocheck nocheck --format=brief /dev/ada0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 10.4-RELEASE-p13 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=======> INVALID ARGUMENT TO -n: nocheck
=======> VALID ARGUMENTS ARE: never, sleep, standby, idle <=======
Use smartctl -h to get a usage summary
zodiac: # smartctl --info --health --attributes --tolerance=verypermissive --nocheck sleep --format=brief /dev/ada0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 10.4-RELEASE-p13 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
ataCheckPowerMode(): ATA CHECK POWER MODE returned unknown Sector Count Register value 81
CHECK POWER MODE returned unknown value 0x81, ignoring -n option
=== START OF INFORMATION SECTION ===
Device Model: ST6000VX0023-2EF110
Serial Number: ZAD86XEL
LU WWN Device Id: 5 000c50 0b528f7c1
Firmware Version: SC60
User Capacity: 6,001,175,126,016 bytes [6.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-3 (unknown minor revision code: 0x006d)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sun Nov 17 17:10:59 2019 CET
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
See vendor-specific Attribute list for marginal Attributes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate POSR-- 080 064 044 - 101151721
3 Spin_Up_Time PO---- 092 092 000 - 0
4 Start_Stop_Count -O--CK 100 100 020 - 5
5 Reallocated_Sector_Ct PO--CK 100 100 010 - 0
7 Seek_Error_Rate POSR-- 079 060 045 - 78148456
9 Power_On_Hours -O--CK 100 100 000 - 308
10 Spin_Retry_Count PO--C- 100 100 097 - 0
12 Power_Cycle_Count -O--CK 100 100 020 - 5
184 End-to-End_Error -O--CK 100 100 099 - 0
187 Reported_Uncorrect -O--CK 100 100 000 - 0
188 Command_Timeout -O--CK 100 100 000 - 0
189 High_Fly_Writes -O-RCK 100 100 000 - 0
190 Airflow_Temperature_Cel -O---K 057 039 040 Past 43 (Min/Max 42/46 #9)
191 G-Sense_Error_Rate -O--CK 099 099 000 - 3840
192 Power-Off_Retract_Count -O--CK 100 100 000 - 10
193 Load_Cycle_Count -O--CK 100 100 000 - 18
194 Temperature_Celsius -O---K 043 061 000 - 43 (0 25 0 0 0)
195 Hardware_ECC_Recovered -O-RC- 007 001 000 - 101151721
197 Current_Pending_Sector -O--C- 100 100 000 - 0
198 Offline_Uncorrectable ----C- 100 100 000 - 0
199 UDMA_CRC_Error_Count -OSRCK 200 200 000 - 0
240 Head_Flying_Hours ------ 100 253 000 - 306 (122 218 0)
241 Total_LBAs_Written ------ 100 253 000 - 16749441101
242 Total_LBAs_Read ------ 100 253 000 - 14679641082
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning