From 81c8e6ee43ba19840e0471b7eac7d69df90b20ad Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 26 Mar 2020 19:28:49 +0100 Subject: [PATCH] Fix nsclient++ new API --- centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm b/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm index 6bbf04331..8e562b79f 100644 --- a/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm +++ b/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm @@ -142,7 +142,7 @@ sub output_perf { my $result = 'UNKNOWN'; $result = $errors_num{$options{result}} if ($options{result} =~ /[0-3]/); - $result = $options{result}if ($options{result} =~ /\w+/); + $result = $options{result} if ($options{result} =~ /[A-Z]+/); my %result = ( code => $result,