From 6927c34b4cabb8b3cdc9ee3416ded669462bf280 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 24 Jul 2020 10:43:59 +0200 Subject: [PATCH] manage space in tomcat reponse --- centreon-plugins/apps/tomcat/web/mode/applications.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/tomcat/web/mode/applications.pm b/centreon-plugins/apps/tomcat/web/mode/applications.pm index c23cde3a9..3e544f918 100644 --- a/centreon-plugins/apps/tomcat/web/mode/applications.pm +++ b/centreon-plugins/apps/tomcat/web/mode/applications.pm @@ -115,7 +115,7 @@ sub manage_selection { ); $self->{application} = {}; - while ($webcontent =~ /^(.*?):(.*?):(.*?):(.*)/mg) { + while ($webcontent =~ /^(.*?)\s*:\s*(.*?)\s*:\s*(.*?)\s*:\s*(.*)/mg) { my ($context, $state, $sessions, $contextpath) = ($1, $2, $3, $4); next if (defined($self->{option_results}->{filter_path}) && $self->{option_results}->{filter_path} ne '' &&