Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-smart.rb doesn't recognize NVMe SSD #115

Open
mdzidic opened this issue Mar 4, 2019 · 2 comments
Open

check-smart.rb doesn't recognize NVMe SSD #115

mdzidic opened this issue Mar 4, 2019 · 2 comments

Comments

@mdzidic
Copy link

mdzidic commented Mar 4, 2019

check-smart.rb throws: CheckSMART UNKNOWN: No SMART capable devices found

And this is output from lsblk:

# lsblk -nro NAME,TYPE
nvme0n1 disk
nvme0n1p1 part
md0 raid1
nvme0n1p2 part
md1 raid1
nvme0n1p3 part
md2 raid1
nvme1n1 disk
nvme1n1p1 part
md0 raid1
nvme1n1p2 part
md1 raid1
nvme1n1p3 part
md2 raid1
@pfak
Copy link

pfak commented Apr 25, 2020

NVMe drives require having SMART capabilities, so smartctl will not output that the device has capability.

https://www.smartmontools.org/ticket/1134

@FredrikWendt
Copy link

If I understand things correctly, NVMe drives have basic SMART capabilities. There just aren't optional ones that can be turned on/off.

Unlike ATA/SATA, NVMe drives have no optional SMART support which could be unavailable or disabled.
The NVMe SMART/Health Information log is mandatory.

See https://www.smartmontools.org/ticket/1134#comment:10

SMART/Health Information (NVMe Log 0x02) seems to be something to scan for in the smartctl output, in the find_devices method:

https://github.com/sensu-plugins/sensu-plugins-disk-checks/blob/master/bin/check-smart-status.rb#L311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants