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 <[email protected]>, 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------
signature.asc
Description: OpenPGP digital signature

