Opened 5 months ago

Last modified 4 months ago

#1632 new enhancement

smartd & json

Reported by: Cody Owned by:
Priority: minor Milestone: undecided
Component: smartd Version: 7.2
Keywords: json Cc:

Description

Can smartd and smartd_warning.sh output json?

smartctl -j outputs json but it does not seem clear if this works with smartd

Change History (3)

comment:1 in reply to:  description Changed 5 months ago by Cody

Thank you, also! I love these programs.

comment:2 Changed 4 months ago by Christian Franke

Thank you, also! I love these programs.

You're welcome.

smartd logs events via syslog and sends email or runs scripts on warnings. JSON does not make much sense in this context. If you want JSON output in warning emails, create a custom script which runs smartctl -j ....

The smartd_warning.sh script is for internal use by smartd only
(Warning: do not run it with -M exec in smartd.conf).

PS: This is a bug tracker, not a support forum. For future support questions, please use the smartmontools-support mailing list instead. Thanks.

comment:3 Changed 4 months ago by Christian Franke

Milestone: undecided

If you have a real world use case for JSON support in smartd, be more specific and describe it in detail.

Note: See TracTickets for help on using tickets.