Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 990 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 990 Bytes

SMART exporter

A pure-Go ATA Self-Monitoring, Analysis and Reporting Technology data exporter

⚠️ This attempts to send ATA PASS THROUGH SCSI commands to all SCSI disks in your system. These should just fail if there's no ATA disk there, but it cannot be ruled out that this may adversely affect a SCSI device or controller. Sadly other ways of identifying SATA disks are either slow or unreliable.

A big thanks goes to Daniel Swarbrick for his work on https://github.com/dswarbrick/smart which this is in part based on.

Quick start

go build .
./smart-exporter

As this is a Go program you can just copy the binary (and drivedb.yaml) anywhere and run it. Metrics are exposed on your-host:9541/metrics by default. This can be changed using --listen-addr.

Limitations

  • Currently does not export thresholds (would need to send another ATA command for each disk)
  • Does not export multi-valued raw data (only the first value is exported)