From cf402c85fec073b4a9f7da043fb7b55fe819c749 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Thu, 11 Jul 2019 13:23:44 +0200 Subject: [PATCH] fix result for legacy api --- apps/protocols/nrpe/custom/nsclient.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/protocols/nrpe/custom/nsclient.pm b/apps/protocols/nrpe/custom/nsclient.pm index fb69bacc6..e66500807 100644 --- a/apps/protocols/nrpe/custom/nsclient.pm +++ b/apps/protocols/nrpe/custom/nsclient.pm @@ -142,6 +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+/); my %result = ( code => $result,