summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorAlexandre Azedo <76041015+aazedo@users.noreply.github.com>2021-03-05 11:40:34 +0000
committerGitHub <noreply@github.com>2021-03-05 14:40:34 +0300
commit3e1ee1b5496ad83762e7fa47d5a9cfc9837debe4 (patch)
tree7f973327fc7c862a0fcf81ce09eb07eff612f0e0 /collectors
parent74f3dedc2e16ad28d94b32fd01f5d6648a8bf5a7 (diff)
python.d/smartd_log: collect attribute 233 (Media Wearout Indicator (SSD)). (#10711)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/smartd_log/smartd_log.chart.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/collectors/python.d.plugin/smartd_log/smartd_log.chart.py b/collectors/python.d.plugin/smartd_log/smartd_log.chart.py
index 8f10a5351c..e4a19d411f 100644
--- a/collectors/python.d.plugin/smartd_log/smartd_log.chart.py
+++ b/collectors/python.d.plugin/smartd_log/smartd_log.chart.py
@@ -49,6 +49,7 @@ ATTR198 = '198'
ATTR199 = '199'
ATTR202 = '202'
ATTR206 = '206'
+ATTR233 = '233'
ATTR_READ_ERR_COR = 'read-total-err-corrected'
ATTR_READ_ERR_UNC = 'read-total-unc-errors'
ATTR_WRITE_ERR_COR = 'write-total-err-corrected'
@@ -111,6 +112,7 @@ ORDER = [
'current_pending_sector_count',
'offline_uncorrectable_sector_count',
'percent_lifetime_used',
+ 'media_wearout_indicator',
]
CHARTS = {
@@ -322,6 +324,12 @@ CHARTS = {
'lines': [],
'attrs': [ATTR202],
'algo': ABSOLUTE,
+ },
+ 'media_wearout_indicator': {
+ 'options': [None, 'Media Wearout Indicator', 'percentage', 'wear', 'smartd_log.media_wearout_indicator', 'line'],
+ 'lines': [],
+ 'attrs': [ATTR233],
+ 'algo': ABSOLUTE,
}
}
@@ -506,6 +514,7 @@ def ata_attribute_factory(value):
ATTR7,
ATTR202,
ATTR206,
+ ATTR233,
]:
return AtaNormalized(*value)