diff --git a/apps/tomcat/web/mode/applications.pm b/apps/tomcat/web/mode/applications.pm index 5501de111..342010a7b 100644 --- a/apps/tomcat/web/mode/applications.pm +++ b/apps/tomcat/web/mode/applications.pm @@ -94,7 +94,7 @@ sub manage_selection { my $webcontent = centreon::plugins::httplib::connect($self); - while ($webcontent =~ m/\/(.*):(.*):(.*):(.*)/g) { + while ($webcontent =~ m/(.*):(.*):(.*):(.*)/g) { my ($context, $state, $sessions, $contextpath) = ($1, $2, $3, $4); next if (defined($self->{option_results}->{filter_path}) && $self->{option_results}->{filter_path} ne '' && diff --git a/apps/tomcat/web/mode/listapplication.pm b/apps/tomcat/web/mode/listapplication.pm index 770246b4a..547c9fef4 100644 --- a/apps/tomcat/web/mode/listapplication.pm +++ b/apps/tomcat/web/mode/listapplication.pm @@ -93,7 +93,7 @@ sub manage_selection { my $webcontent = centreon::plugins::httplib::connect($self); - while ($webcontent =~ m/\/(.*):(.*):(.*):(.*)/g) { + while ($webcontent =~ m/(.*):(.*):(.*):(.*)/g) { my ($context, $state, $sessions, $contextpath) = ($1, $2, $3, $4); if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && diff --git a/apps/tomcat/web/mode/sessions.pm b/apps/tomcat/web/mode/sessions.pm index 7629580a3..3a89af7dd 100644 --- a/apps/tomcat/web/mode/sessions.pm +++ b/apps/tomcat/web/mode/sessions.pm @@ -105,7 +105,7 @@ sub manage_selection { my $webcontent = centreon::plugins::httplib::connect($self); - while ($webcontent =~ m/\/(.*):(.*):(.*):(.*)/g) { + while ($webcontent =~ m/(.*):(.*):(.*):(.*)/g) { my ($context, $state, $sessions, $contextpath) = ($1, $2, $3, $4); next if (defined($self->{option_results}->{filter_state}) && $self->{option_results}->{filter_state} ne '' &&