Skip to content

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

Open
@NiceGuyIT

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions