Your message dated Wed, 23 Oct 2013 08:49:38 +0200
with message-id <52677182.2000...@cyconet.org>
and subject line Bug seems fixed
has caused the Debian Bug report #685797,
regarding nagios-plugins-contrib: check_raid - cli64 and ModelName containing 
spaces
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
685797: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685797
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: nagios-plugins-contrib
Version: 4.20120702
Severity: normal
Tags: patch

Hi,

One of our servers with an areca card has drives that have modelnames
containing spaces and hyphens. This causes the drive section of the
results from check_raid to be blank. Attached is a patch to update the
regex and handle our drives.

Regards,
Dan

diff -ru a/check_raid/check_raid b/check_raid/check_raid
--- a/check_raid/check_raid     2012-08-02 22:16:58.000000000 +0100
+++ b/check_raid/check_raid     2012-08-24 12:16:59.000000000 +0100
@@ -1331,7 +1331,7 @@
                # plugin to miss a failed drive.
                next if (/^\s+\d+\s+\d+\s+SLOT\s2[5-9]/);
 
-               next unless (my($drive1, $stat1) = 
/^\s+\d+\s+\d+\s+SLOT\s(\d+)\s.+\s+\d+\.\d+\w+\s\s(.+)/) || (my($drive2, 
$stat2) = /^\s+\d+\s+(\d+)\s+\w+\s+\d+.\d\w+\s+(.+)/);
+               next unless (my($drive1, $stat1) = 
/^\s+\d+\s+\d+\s+SLOT\s(\d+)\s.+\s+\d+\.\d+\w+\s\s(.+)/) || (my($drive2, 
$stat2) = /^\s+\d+\s+(\d+)\s+[\w-\s]+?\s+\d+.\d\w+\s+(.+)/);
 
                if (defined($drive1)) {
                        push(@drivestatus, "$drive1:$stat1");


--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Source: nagios-plugins-contrib
Source-Version: 7.20130614

So we close this bug.

Cheers, Jan.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iD8DBQFSZ3GB9u6Dud+QFyQRAqWQAKDwmvE1na+dn34j4vHzsJ9Fb+S3NQCgi+xJ
/CRythAxTTtuzD0myLB28MI=
=Y0Em
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to