Merge pull request #1 from ektich/wrncritcmd

Specifying warning and critical thresholds on cmd
master
neingeist 8 years ago committed by GitHub
commit 189f12a367

@ -77,8 +77,12 @@ sub aggregate_errors {
my $no_thinpools_ok = 0; my $no_thinpools_ok = 0;
GetOptions("no-thinpools-ok" => \$no_thinpools_ok) Getopt::Long::Configure('bundling');
or die("Error in command line arguments\n"); GetOptions
("no-thinpools-ok" => \$no_thinpools_ok,
"w=f" => \$warn, "warning=f" => \$warn,
"c=f" => \$crit, "critical=f" => \$crit)
or die("Error in command line arguments\n");
my @thinpools = get_thinpools(); my @thinpools = get_thinpools();

Loading…
Cancel
Save