https://github.com/lorenz/smart-exporter
A pure-Go ATA SMART data exporter
https://github.com/lorenz/smart-exporter
Last synced: over 1 year ago
JSON representation
A pure-Go ATA SMART data exporter
- Host: GitHub
- URL: https://github.com/lorenz/smart-exporter
- Owner: lorenz
- License: other
- Created: 2020-07-06T19:50:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T10:02:18.000Z (over 3 years ago)
- Last Synced: 2025-01-21T00:42:18.490Z (over 1 year ago)
- Language: Go
- Size: 59.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SMART exporter
*A pure-Go ATA **S**elf-**M**onitoring, **A**nalysis and **R**eporting **T**echnology data exporter*
:warning: 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)