The Crucial SSDs occasionally have a pending sector count of 1 but it returns to 0 shortly thereafter. I should apply model specific threshold changes; perhaps like so:
KNOWN_MODEL_ATTRIBUTES = {
r'CT\d+MX\d+SSD': {197: {'Warning': 1, 'Error': 2}},
}
# Disk attribute check
known_attributes = KNOWN_ATTRIBUTES.copy()
for model, attributes in KNOWN_MODEL_ATTRIBUTES.items():
if re.search(model, self.details['model']):
for _id, thresholds in attributes.items():
if _id in known_attributes:
known_attributes[_id].update(thresholds)
else:
known_attributes[_id] = thresholds
The Crucial SSDs occasionally have a pending sector count of 1 but it returns to 0 shortly thereafter. I should apply model specific threshold changes; perhaps like so: