prometheus-community / smartctl_exporter

Export smartctl statistics to prometheus
Apache License 2.0
320 stars 93 forks source link

Deal with Seagate Mixing Other Data with Error Counts #108

Open psa opened 1 year ago

psa commented 1 year ago

Seagate, in their infinite wisdom, decided to combine reads/access/etc and errors in several stats.

As noted here and here Seagate data needs to have -v 7,raw48:54 added to the call to smartctl in order to properly report errors.

Can smartctl_exporter clean up the data before export?

NiceGuyIT commented 1 year ago

Hi @psa, this is the same as #26: Non standard device accessors such as -d cciss,N do not work.

NiceGuyIT commented 1 year ago

Actually, #26 and #89 both deal with -d TYPE, --device=TYPE, not -v ID,FORMAT[:BYTEORDER][,NAME], --vendorattribute=ID,FORMAT mentioned in this issue.

NiceGuyIT commented 1 year ago

@psa, to help troubleshoot your request, can you provide the following as attachments?

sudo smartctl --scan --json

For the device in question:

smartctl --json --info --health --attributes --tolerance=verypermissive --nocheck=standby --format=brief --log=error <device>
psa commented 1 year ago

Thank you, here's the scans: ada3.txt scan.txt