Dear maintainer, hi everyone,

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 "*".

It seems to work well on my side, maybe you could try?

I'm using the latest version available on Debian 10.

Here is my patch:

Regards,

Aymeric.


--- /usr/lib/nagios/plugins/check_raid  2020-12-08 21:05:25.067753313 +0100
+++ /tmp/check_raid     2020-12-08 21:05:20.219799196 +0100
@@ -3558,7 +3558,7 @@
                        my $re = qr{^
                                (\S+)           # devname
                                (?:\[(\d+)\])   # desc_nr
-                               (?:\((.)\))?    # flags: (W|F|S) -
WriteMostly, Faulty, Spare
+                               (?:\((.)\))*    # flags: (W|F|S) -
WriteMostly, Faulty, Spare
                        $}x;
                        my @disks = ();
                        my $personality;


Reply via email to