Skip to content

Commit

Permalink
osd: add common smartctl output to JSON output
Browse files Browse the repository at this point in the history
Enables consumers like the dashboard to provide the regular smartctl
output to users.

Signed-off-by: Patrick Seidensal <[email protected]>
  • Loading branch information
p-se committed Sep 18, 2019
1 parent 14e7347 commit 44068fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/blkdev.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion sudoers.d/ceph-osd-smartctl
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 44068fc

Please sign in to comment.