From 07c83691d0899ac2beb663390a10f3120418ee77 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 28 Nov 2018 20:43:51 -0800 Subject: [PATCH] Handle another smartctl output format https://sourceforge.net/p/webadmin/bugs/5120 --- smart-status/smart-status-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smart-status/smart-status-lib.pl b/smart-status/smart-status-lib.pl index d2cd8152d..5da08ed45 100755 --- a/smart-status/smart-status-lib.pl +++ b/smart-status/smart-status-lib.pl @@ -317,7 +317,8 @@ if (&get_smart_version() > 5.0) { # Not enabled! $rv{'enabled'} = 0; } - if ($device =~ /^\/dev\/nvme/ && $out =~ /Model Number:/i) { + if ($device =~ /^\/dev\/nvme/ && + $out =~ /(Model\s+Number|Device\s+Model):/i) { # For NVME devices, surprisingly smart support/enabled info is # not shown. So assume they work $rv{'support'} = 1;