Skip to content

Warning: Key smart_status.passed not found in JSON #41

@PhantomPhoton

Description

@PhantomPhoton

I'm receiving Warning: Key smart_status.passed not found in JSON as a warning on the container. When looking at the smartctl output, smart status isn't being output with just -A, but requires -A --health to be passed

# smartctl -A -j /dev/sda | jq -r --arg key "smart_status.passed" 'getpath($key | split(".")) // "not_found"'
not_found
# smartctl -A --health -j /dev/sda | jq -r --arg key "smart_status.passed" 'getpath($key | split(".")) // "not_found"'
true

optionally it appears that --xall includes the health data, and a lot more. That might be a better option?

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