@cryptotaxi247 / netdata-1 / commits / a94408c0c

python.d(smartd_log): collect attribute 249 -- NAND Writes 1GiB (#10872)

* python.d(smartd_log): collect attribute 249 -- NAND Writes 1GiB Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

Ryan Lahfa committed Apr 14, 2021 at 20:07 UTC a94408c0cda105e3e68214c16a03c7038a5c2560
1 file changed +8 -1
collectors/python.d.plugin/smartd_log/smartd_log.chart.py
+8 -1
@@ -50,6 +50,7 @@ ATTR199 = '199'
50 ATTR202 = '202'
51 ATTR206 = '206'
52 ATTR233 = '233'
53 +ATTR249 = '249'
54 ATTR_READ_ERR_COR = 'read-total-err-corrected'
55 ATTR_READ_ERR_UNC = 'read-total-unc-errors'
56 ATTR_WRITE_ERR_COR = 'write-total-err-corrected'
@@ -330,7 +331,13 @@ CHARTS = {
331 'lines': [],
332 'attrs': [ATTR233],
333 'algo': ABSOLUTE,
333 - }
334 + },
335 + 'nand_writes_1gib': {
336 + 'options': [None, 'NAND Writes', 'GiB', 'wear', 'smartd_log.nand_writes_1gib', 'line'],
337 + 'lines': [],
338 + 'attrs': [ATTR249],
339 + 'algo': ABSOLUTE,
340 + },
341 }
342
343 # NOTE: 'parse_temp' decodes ATA 194 raw value. Not heavily tested. Written by @Ferroin