commit
91baa8b6f2
|
@ -121,6 +121,7 @@ sub run {
|
|||
$self->{option_results}->{port} = $self->{option_results}->{registry_port};
|
||||
$self->{option_results}->{proto} = $self->{option_results}->{registry_proto};
|
||||
$self->{option_results}->{hostname} = $self->{option_results}->{registry_hostname};
|
||||
$self->{http}->set_options(%{$self->{option_results}});
|
||||
|
||||
$jsoncontent2 = $self->{http}->request();
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ sub check_options {
|
|||
my ($self, %options) = @_;
|
||||
$self->SUPER::init(%options);
|
||||
|
||||
$self->{http}->set_options(%{$self->{option_results}});
|
||||
}
|
||||
|
||||
sub run {
|
||||
|
|
|
@ -49,7 +49,7 @@ sub new {
|
|||
"timeout:s" => { name => 'timeout' },
|
||||
});
|
||||
|
||||
$self->{http}->set_options(%{$self->{option_results}});
|
||||
$self->{http} = centreon::plugins::http->new(output => $self->{output});
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue