# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1390690113 -3600 # Node ID 6c2728f0c6f72b8868222b571a3542205a9cbb5d # Parent 2247be0e2a13c417cf8905bcef756578b3ccfe8f removed the include feature For now we do not know how it should work. diff -r 2247be0e2a13 -r 6c2728f0c6f7 plugins/check_amanda-client --- a/plugins/check_amanda-client Sat Jan 25 23:08:21 2014 +0100 +++ b/plugins/check_amanda-client Sat Jan 25 23:48:33 2014 +0100 @@ -43,12 +43,10 @@ sub main { my @opt_exclude; - my @opt_include; my $opt_verbose = 0; GetOptions( 'e|x|exclude=s@' => \@opt_exclude, - 'i|include=s@' => \@opt_include, 'h|help' => sub { pod2usage(-verbose => 1, -exit => 0) }, 'm|man' => sub { pod2usage(-verbose => 2, -exit => 0) }, 'v|verbose' => \$opt_verbose, @@ -80,7 +78,6 @@ compare_lists confs => \@confs, exclude => \@opt_exclude, - include => \@opt_include; } or CRITICAL $@; OK 'config: ' . join(', ', @confs), @dles; @@ -221,14 +218,13 @@ my %arg = @_; my @confs = @{ $arg{confs} } or croak 'missing list of confs'; my @exclude = @{ $arg{exclude} }; - my @include = @{ $arg{include} }; WARNING "excluded filesystem(s) @$_ does not exist, update the config please!\n" if @exclude and @$_ = grep { not -e } unique map { /^.*?:(.*)/ } @exclude; - my @candidates = (get_devices, @include); + my @candidates = get_devices; my %missing; foreach my $conf (@confs) { @@ -287,16 +283,6 @@ check_amanda-client --exclude weekly:/var/spool/squid --exclude /boot -=item B<-i>|B<--include> [I:]I - -Which filesystems/directories we additionally want to check. -No config means all configs. - - check_amanda-client --include weekly:/etc - -If the directory is contained already in another directory/filesystem, -the test is satisfied. - =item B<-h>|B<--help> Show a short description and help text.