@cryptotaxi247 / netdata-1 / commits / 3e1ee1b54

python.d/smartd_log: collect attribute 233 (Media Wearout Indicator (SSD)). (#10711)

Alexandre Azedo committed Mar 5, 2021 at 11:40 UTC 3e1ee1b5496ad83762e7fa47d5a9cfc9837debe4
1 file changed +9
collectors/python.d.plugin/smartd_log/smartd_log.chart.py
+9
@@ -49,6 +49,7 @@ ATTR198 = '198'
49 ATTR199 = '199'
50 ATTR202 = '202'
51 ATTR206 = '206'
52 +ATTR233 = '233'
53 ATTR_READ_ERR_COR = 'read-total-err-corrected'
54 ATTR_READ_ERR_UNC = 'read-total-unc-errors'
55 ATTR_WRITE_ERR_COR = 'write-total-err-corrected'
@@ -111,6 +112,7 @@ ORDER = [
112 'current_pending_sector_count',
113 'offline_uncorrectable_sector_count',
114 'percent_lifetime_used',
115 + 'media_wearout_indicator',
116 ]
117
118 CHARTS = {
@@ -322,6 +324,12 @@ CHARTS = {
324 'lines': [],
325 'attrs': [ATTR202],
326 'algo': ABSOLUTE,
327 + },
328 + 'media_wearout_indicator': {
329 + 'options': [None, 'Media Wearout Indicator', 'percentage', 'wear', 'smartd_log.media_wearout_indicator', 'line'],
330 + 'lines': [],
331 + 'attrs': [ATTR233],
332 + 'algo': ABSOLUTE,
333 }
334 }
335
@@ -506,6 +514,7 @@ def ata_attribute_factory(value):
514 ATTR7,
515 ATTR202,
516 ATTR206,
517 + ATTR233,
518 ]:
519 return AtaNormalized(*value)
520