Remove connector command options

This commit is contained in:
Quentin Garnier 2015-01-09 16:53:45 +01:00
parent 70899ca5b3
commit 485ed7dfd0
1 changed files with 0 additions and 19 deletions

View File

@ -50,8 +50,6 @@ sub new {
{ {
"datacenter:s" => { name => 'datacenter' }, "datacenter:s" => { name => 'datacenter' },
"filter" => { name => 'filter' }, "filter" => { name => 'filter' },
"warning:s" => { name => 'warning', },
"critical:s" => { name => 'critical', },
"filter-time:s" => { name => 'filter_time', }, "filter-time:s" => { name => 'filter_time', },
}); });
return $self; return $self;
@ -60,15 +58,6 @@ sub new {
sub check_options { sub check_options {
my ($self, %options) = @_; my ($self, %options) = @_;
$self->SUPER::init(%options); $self->SUPER::init(%options);
if (($self->{perfdata}->threshold_validate(label => 'warning', value => $self->{option_results}->{warning})) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong warning threshold '" . $self->{option_results}->{warning} . "'.");
$self->{output}->option_exit();
}
if (($self->{perfdata}->threshold_validate(label => 'critical', value => $self->{option_results}->{critical})) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong critical threshold '" . $self->{option_results}->{critical} . "'.");
$self->{output}->option_exit();
}
} }
sub run { sub run {
@ -103,14 +92,6 @@ Datacenter is a regexp.
Don't check alarm older (value in seconds). Don't check alarm older (value in seconds).
=item B<--warning>
Threshold warning in number of alarms.
=item B<--critical>
Threshold critical in number of alarms.
=back =back
=cut =cut