Skip to content

Use smartmontool's JSON output #8

Description

@ercpe

Parsing the output of the smartctl output was more of a poor-man's way to get the SMART information (still easier too implement than figuring out how to get the raw smart values directly from the drive).

Recent versions of smartmontools have a JSON output (via the -j argument) which removes a lot of the guesswork and manual parsing of the output.

  • Support (and prefer) the JSON output when calling smartctl
  • Fallback to parsing the output if the installed versions does not support the -j argument.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions