mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix nrpe plugin
This commit is contained in:
parent
ecb42e7cb5
commit
ab2302ff18
@ -102,7 +102,7 @@ sub create_socket {
|
|||||||
|
|
||||||
my $socket;
|
my $socket;
|
||||||
|
|
||||||
if (scalar(keys %{$self->{ssl_context}}) > 0) {
|
if ($self->{ssl_context} ne '') {
|
||||||
$socket = IO::Socket::SSL->new(%{$self->{nrpe_params}}, eval $self->{ssl_context});
|
$socket = IO::Socket::SSL->new(%{$self->{nrpe_params}}, eval $self->{ssl_context});
|
||||||
if (!$socket) {
|
if (!$socket) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Failed to establish SSL connection: $!, ssl_error=$SSL_ERROR");
|
$self->{output}->add_option_msg(short_msg => "Failed to establish SSL connection: $!, ssl_error=$SSL_ERROR");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user