[Pkg-nagios-devel] Bug#894601: Bug#894601: check_raid fails to ignore listed devices

Jan Wagner waja at cyconet.org
Wed Nov 7 14:40:18 GMT 2018


Hi Damyan,

Am 02.04.18 um 08:36 schrieb Damyan Ivanov:
> However, the chech whether a given device should be ignores is:
> 
>   # return true if parameter is not in ignore list
>   sub valid {
>         my $this = shift;
>         my ($v) = lc $_[0];
> 
>         foreach (@utils::ignore) {
>                 warn "   $v is $_?";
>                 return 0 if lc $_ eq $v;
>         }
>         warn "$v is a valid device";
>         return 1;
>   }
> 
> But @utils:ignore is not populated anywhere. The code that handles the command 
> line is:
> 
>   if (@ARGV) {
>         @App::Monitoring::Plugin::CheckRaid::Utils::ignore = @ARGV;
>   }
> 
> Changing the loop in valid() to use 
> @App::Monitoring::Plugin::CheckRaid::Utils::ignore instead of @utils::ignore 
> fixes it and ignoring devices listed on the command line works again.

thanks for bringing this to our attention. It would be very helpful
if you could raise[1] an issue upstream.

Many thanks, Jan.
[1] https://github.com/glensc/nagios-plugin-check_raid/#reporting-bugs
-- 
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: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-devel/attachments/20181107/2d183cfd/attachment.sig>


More information about the Pkg-nagios-devel mailing list