<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Dear maintainer, hi everyone, <br>
</p>
<p>I got the same issue and I've made a simple fix on the regex,
instead of "?" which is valid for "0" or "1" occurence, I used
"*". <br>
</p>
<p>It seems to work well on my side, maybe you could try?</p>
<p>I'm using the latest version available on Debian 10. <br>
</p>
<p>Here is my patch:</p>
<p>Regards,</p>
<p>Aymeric. <br>
</p>
<p><br>
</p>
<p>--- /usr/lib/nagios/plugins/check_raid 2020-12-08
21:05:25.067753313 +0100<br>
+++ /tmp/check_raid 2020-12-08 21:05:20.219799196 +0100<br>
@@ -3558,7 +3558,7 @@<br>
my $re = qr{^<br>
(\S+) # devname<br>
(?:\[(\d+)\]) # desc_nr<br>
- (?:\((.)\))? # flags: (W|F|S) -
WriteMostly, Faulty, Spare<br>
+ (?:\((.)\))* # flags: (W|F|S) -
WriteMostly, Faulty, Spare<br>
$}x;<br>
my @disks = ();<br>
my $personality;<br>
</p>
<p><br>
</p>
<div id="grammalecte_menu_main_button_shadow_host" style="width:
0px; height: 0px;"></div>
</body>
</html>