From 48b319e1f8610ffab4f344fa0c3570356c68df62 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 --- apps/protocols/nrpe/custom/nsclient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/protocols/nrpe/custom/nsclient.pm b/apps/protocols/nrpe/custom/nsclient.pm index 6bbf04331..8e562b79f 100644 --- a/apps/protocols/nrpe/custom/nsclient.pm +++ b/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,