[Pkg-nagios-devel] Bug#574612: Bug#574612: nagios-plugins-standard: check_linux_raid does not detect recovery

Jan Wagner waja at cyconet.org
Fri Mar 19 14:51:34 UTC 2010


Hi Christoph,

thanks for your report.

On Friday 19 March 2010 12:21:18 Christoph Martin wrote:
> If you have a status like the following:
[...]
> check_linux_raid will return no Warning state but Ok state. This is
> because the script wants to see an empty line after each md block,
> which is not the case if a recovery is running.
>
> Here is a patch to fix this:
>
> *** /usr/lib/nagios/plugins/check_linux_raid~        Wed Nov 25 12:11:58
> 2009 --- /usr/lib/nagios/plugins/check_linux_raid Fri Mar 19 12:06:24 2010
> ***************
> *** 64,69 ****
> --- 64,70 ----
>                         } elsif (/recovery = (.*?)\s/) {
>                                 $recovery{$device} = $1;
>                                 ($finish{$device}) = /finish=(.*?min)/;
> +                               $device=undef;
>                         } elsif (/^\s*$/) {
>                                 $device=undef;
>                         }

I applied the patch to the scm and it should be included into the next upload. 
Anyhow ... this script is installed from the contrib section of upstream, 
which tries to get rid of those. For the future, I think we will remove 
check_bgpstate and check_linux_raid or move to an other package.

With kind regards, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ 
------END GEEK CODE BLOCK------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20100319/39cf9d71/attachment.pgp>


More information about the Pkg-nagios-devel mailing list