-
Problem report
-
Resolution: Duplicate
-
Major
-
None
-
5.0.18
-
ubuntu LTS
-
Sprint 84 (Jan 2022)
Smart plugin smart.disk.test item is not woring with following error:
Preprocessing failed for: [{"device":{"info_name":"/dev/nvme0","name":"/dev/nvme0","protocol":"NVMe","type":"nvme"},"disk_n... 1. Failed: cannot extract value from json by path "$[?(@.disk_name=='nvme0')].ata_smart_data.self_test.status.passed.first()": no data matches the specified path
This is due, nvme devices doesnt have ata smart data.
smartctl -a /dev/nvme0 -j output:
{ "json_format_version": [ 1, 0 ], "smartctl": { "version": [ 7, 1 ], "svn_revision": "5022", "platform_info": "x86_64-linux-4.4.0-143-generic", "build_info": "(local build)", "argv": [ "smartctl", "-a", "/dev/nvme0", "-j" ], "exit_status": 0 }, "device": { "name": "/dev/nvme0", "info_name": "/dev/nvme0", "type": "nvme", "protocol": "NVMe" }, "model_name": "Samsung SSD 960 EVO 500GB", "serial_number": "S3EUNX0JA01554V", "firmware_version": "2B7QCXE7", "nvme_pci_vendor": { "id": 5197, "subsystem_id": 5197 }, "nvme_ieee_oui_identifier": 9528, "nvme_total_capacity": 500107862016, "nvme_unallocated_capacity": 0, "nvme_controller_id": 2, "nvme_number_of_namespaces": 1, "nvme_namespaces": [ { "id": 1, "size": { "blocks": 976773168, "bytes": 500107862016 }, "capacity": { "blocks": 976773168, "bytes": 500107862016 }, "utilization": { "blocks": 331666792, "bytes": 169813397504 }, "formatted_lba_size": 512, "eui64": { "oui": 9528, "ext_id": 388454421816 } } ], "user_capacity": { "blocks": 976773168, "bytes": 500107862016 }, "logical_block_size": 512, "local_time": { "time_t": 1638378808, "asctime": "Wed Dec 1 18:13:28 2021 CET" }, "smart_status": { "passed": true, "nvme": { "value": 0 } }, "nvme_smart_health_information_log": { "critical_warning": 0, "temperature": 29, "available_spare": 100, "available_spare_threshold": 10, "percentage_used": 33, "data_units_read": 56095902, "data_units_written": 180520256, "host_reads": 1219422351, "host_writes": 5666919993, "controller_busy_time": 43495, "power_cycles": 88, "power_on_hours": 19398, "unsafe_shutdowns": 66, "media_errors": 0, "num_err_log_entries": 0, "warning_temp_time": 0, "critical_comp_time": 0, "temperature_sensors": [ 29, 50 ] }, "temperature": { "current": 29 }, "power_cycle_count": 88, "power_on_time": { "hours": 19398 } }
There is a "smart_status" json object here, you can use that value for item result.