removed the include feature
For now we do not know how it should work.
--- 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<config>:]I<filesystem>
-
-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.