From e071eb06a9074fe5e3d70376028f20758718526b Mon Sep 17 00:00:00 2001 From: Claudio Kuenzler Date: Fri, 10 Dec 2021 14:06:10 +0100 Subject: [PATCH] Bugfix in interface handling (6.12.1) (#77) --- check_smart.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check_smart.pl b/check_smart.pl index 2755ad9..793b18d 100755 --- a/check_smart.pl +++ b/check_smart.pl @@ -51,13 +51,14 @@ # Jul 6, 2021: Bernhard Bittner - Add aacraid devices (6.10.0) # Oct 4, 2021: Claudio Kuenzler + Peter Newman - Handle dots in NVMe attributes, prioritize (order) alerts (6.11.0) # Dec 10, 2021: Claudio Kuenzler - Sec fix in path for pseudo-devices, add Erase_Fail_Count_Total, fix NVMe perfdata (6.12.0) +# Dec 10, 2021: Claudio Kuenzler - Bugfix in interface handling (6.12.1) use strict; use Getopt::Long; use File::Basename qw(basename); my $basename = basename($0); -my $revision = '6.12.0'; +my $revision = '6.12.1'; # Standard Nagios return codes my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); @@ -135,7 +136,7 @@ # Allow all device types currently supported by smartctl # See http://www.smartmontools.org/wiki/Supported_RAID-Controllers - if ($opt_i =~ m/^(ata|scsi|3ware|areca|hpt|aacraid|cciss|megaraid|sat|auto|nvme)$/) { + if ($opt_i =~ m/^(ata|scsi|3ware|areca|hpt|aacraid|cciss|megaraid|sat|auto|nvme)/) { $interface = $opt_i; if($interface =~ m/megaraid,\[(\d{1,2})-(\d{1,2})\]/) { $interface = "";