mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
fix nrpe plugin
This commit is contained in:
parent
d6cb0a0ae9
commit
33a50a4d9f
@ -102,7 +102,7 @@ sub create_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});
|
||||
if (!$socket) {
|
||||
$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