v-zhuravlev / zbx-smartctl

Templates and scripts for monitoring disks health with Zabbix and smartmontools

Home Page:https://share.zabbix.com/storage-devices/smartmontools/smart-monitoring-with-smartmontools-lld

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can’t get correct output to SSDs of different manufacturers

abashkindenis opened this issue · comments

SSD SanDisk SDSSDA120G

/dev/sda: ID 177/202/233 SSD wearout uSSD["/dev/sda -data",SSD wearout]
Preprocessing failed for: smartctl 7.0 2018-12-30 r4883 [x86_64-w64-mingw32-w10-b18362] (sf-7.0-1)..Copyright (C) 2002-18, ...

  1. Failed: cannot perform regular expression "(?:(?:177 Wear_Leveling_Count|202 Percent_Lifetime_Used|233 Media_Wearout_Indicator|231 SSD_Life_Left) +0x[0-9a-z]+|Available Spare:) +([0-9]+)" match for value of type "string": pattern does not match

/dev/sda: ID 5 Reallocated sectors count uSSD["/dev/sda -data",5 Reallocated]
Preprocessing failed for: smartctl 7.0 2018-12-30 r4883 [x86_64-w64-mingw32-w10-b18362] (sf-7.0-1)..Copyright (C) 2002-18, ...

  1. Failed: cannot perform regular expression "(?:5 Reallocate.+|Elements in grown defect list:.+)([0-9]+)" match for value of type "string": pattern does not match

SSD KINGSTON SV300S37A120G

/dev/sda: ID 199 CRC error countuSSD["/dev/sda -data",UDMA_CRC_Error]
Preprocessing failed for: smartctl 7.0 2018-12-30 r4883 [x86_64-w64-mingw32-w10-b18362] (sf-7.0-1)..Copyright (C) 2002-18, ...

  1. Failed: cannot perform regular expression "(?:UDMA_CRC_Error|CRC_Error_Count|Non-medium error count:|Media and Data Integrity Errors:).+ ([0-9]+)" match for value of type "string": pattern does not match

/dev/sda: ID 5 Reallocated sectors count uSSD["/dev/sda -data",5 Reallocated]

Preprocessing failed for: smartctl 7.0 2018-12-30 r4883 [x86_64-w64-mingw32-w10-b18362] (sf-7.0-1)..Copyright (C) 2002-18, ...

  1. Failed: cannot perform regular expression "(?:5 Reallocate.+|Elements in grown defect list:.+)([0-9]+)" match for value of type "string": pattern does not match

Подскажите что мне сделать чтобы все работало .
На samsunge все работает очень хорошо но на других производителей не очень.
Tell me what to do to make everything work.
Everything works very well on samsunge, but not very well on other manufacturers.

Прикладываю вывод Sandisk
Model Family: SandForce Driven SSDs
Device Model: SanDisk SDSSDA120G
Serial Number: 170439452913
Firmware Version: Z32080RL
Device is: In smartctl database [for details use: -P show]
ATA Version is: [No Information Found]
Local Time is: Sat Nov 16 12:06:19 2019
SMART support is: Available - device has SMART capability.
Enabled status cached by OS, trying SMART RETURN STATUS cmd.
SMART support is: Enabled

Read SMART Thresholds failed: Function not implemented

=== 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: ( 120) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 10) minutes.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Retired_Block_Count 0x0032 100 100 --- Old_age Always - 0
9 Power_On_Hours_and_Msec 0x0032 000 100 --- Old_age Always - 5543h+00m+00.000s
12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 510
165 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 3951450916032
166 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 1
167 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
168 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 9
169 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
170 Reserve_Block_Count 0x0032 100 100 --- Old_age Always - 0
171 Program_Fail_Count 0x0032 100 100 --- Old_age Always - 0
172 Erase_Fail_Count 0x0032 100 100 --- Old_age Always - 0
173 Unknown_SandForce_Attr 0x0032 100 100 --- Old_age Always - 4
174 Unexpect_Power_Loss_Ct 0x0032 100 100 --- Old_age Always - 113
187 Reported_Uncorrect 0x0032 100 100 --- Old_age Always - 0
188 Command_Timeout 0x0032 100 100 --- Old_age Always - 0
194 Temperature_Celsius 0x0022 063 044 --- Old_age Always - 37 (Min/Max 0/56)
199 SATA_CRC_Error_Count 0x0032 100 100 --- Old_age Always - 0
230 Life_Curve_Status 0x0032 100 100 --- Old_age Always - 1739465687445
232 Available_Reservd_Space 0x0033 100 100 --- Pre-fail Always - 100
233 SandForce_Internal 0x0032 100 100 --- Old_age Always - 504
234 SandForce_Internal 0x0032 100 100 --- Old_age Always - 5676
241 Lifetime_Writes_GiB 0x0030 253 253 --- Old_age Offline - 2673
242 Lifetime_Reads_GiB 0x0030 253 253 --- Old_age Offline - 3908
244 Unknown_Attribute 0x0032 000 100 --- Old_age Always - 0