Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create fake "smartctl --json --scan" for testing #227

Open
NiceGuyIT opened this issue May 5, 2024 · 0 comments
Open

Create fake "smartctl --json --scan" for testing #227

NiceGuyIT opened this issue May 5, 2024 · 0 comments

Comments

@NiceGuyIT
Copy link
Member

Fake data can be fed to smartctl_exporter by using the --smartctl.fake-data flag which reads the JSON from ./testdata for devices. readSMARTctlDevices() exec's smartctl --json --scan to get the list of devices. It would be nice to provide "fake" scan data to use for testing purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant