Specifying warning and critical thresholds on cmd

Allow to specify warning threshold with -w (--warning) and critical
threshold with -c (--critical) command line parameters.
master
Vanush "Misha" Paturyan 8 years ago
parent 1fa9566e91
commit dc260c67ea

@ -77,7 +77,11 @@ sub aggregate_errors {
my $no_thinpools_ok = 0; my $no_thinpools_ok = 0;
GetOptions("no-thinpools-ok" => \$no_thinpools_ok) Getopt::Long::Configure('bundling');
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"); or die("Error in command line arguments\n");
my @thinpools = get_thinpools(); my @thinpools = get_thinpools();

Loading…
Cancel
Save