mirror of
https://github.com/ceph/ceph
synced 2025-01-14 06:53:11 +00:00
osd: add common smartctl output to JSON output
Enables consumers like the dashboard to provide the regular smartctl output to users. Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
This commit is contained in:
parent
14e73478b0
commit
44068fc941
@ -681,7 +681,7 @@ static int block_device_run_smartctl(const string& devname, int timeout,
|
||||
"smartctl",
|
||||
"-a",
|
||||
//"-x",
|
||||
"--json",
|
||||
"--json=o",
|
||||
device.c_str(),
|
||||
NULL);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
## allow ceph-osd (which runs as user ceph) to collect device health metrics
|
||||
|
||||
ceph ALL=NOPASSWD: /usr/sbin/smartctl -a --json /dev/*
|
||||
ceph ALL=NOPASSWD: /usr/sbin/smartctl -a --json=o /dev/*
|
||||
ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*
|
||||
|
Loading…
Reference in New Issue
Block a user