To answer my own question version 7.0 of the smartmontools package is needed. This has the --json flag See: http://debian.2.n7.nabble.com/Bug-918535-smartmontools-New-upstream-release-7-0-td4447595.html
On Wed, 27 Feb 2019 at 11:09, John Hearns <hear...@googlemail.com> wrote: > I am looking at the diskprediction health metrics in Nautilus Looks very > useful. http://docs.ceph.com/docs/nautilus/mgr/diskprediction/ > > On a Debian 9 system with smartctl version 6.6 2016-05-31 I get this: > > # ceph device get-health-metrics SEAGATE_ST1000NM0023_Z1W1ZB0P > { > "20190227-104719": { > "nvme_smart_health_information_add_log_error_code": -22, > "nvme_vendor": "seagate", > "nvme_smart_health_information_add_log_error": "nvme returned an > error: sudo: exit status: 1", > "dev": "/dev/sdb", > "error": "smartctl returned invalid JSON" > } > > I am guessing a more up to date smartmontools is needed? > > John Hearns >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com