fix nrpe plugin

This commit is contained in:
garnier-quentin 2019-10-08 10:21:22 +02:00
parent d6cb0a0ae9
commit 33a50a4d9f
1 changed files with 1 additions and 1 deletions

View File

@ -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");