diff --git a/apps/tomcat/jmx/mode/connectorusage.pm b/apps/tomcat/jmx/mode/connectorusage.pm index cea015621..80aa205c8 100644 --- a/apps/tomcat/jmx/mode/connectorusage.pm +++ b/apps/tomcat/jmx/mode/connectorusage.pm @@ -197,7 +197,8 @@ sub manage_selection { $self->{tomcatconnector} = {}; foreach my $key (keys %$result) { $key =~ /name=(.*?),type=(.*)/; - my ($connector, $type) = ($1, $2); + my ($connector, $type) = ($1, $2); # double quote nivo du name si existe + $connector =~ s/^"(.*)"$/$1/g; if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $connector !~ /$self->{option_results}->{filter_name}/) { diff --git a/apps/tomcat/jmx/mode/datasourceusage.pm b/apps/tomcat/jmx/mode/datasourceusage.pm index eef003b5e..80e60cfb6 100644 --- a/apps/tomcat/jmx/mode/datasourceusage.pm +++ b/apps/tomcat/jmx/mode/datasourceusage.pm @@ -168,9 +168,11 @@ sub manage_selection { $key =~ /(?:[:,])host=(.*?)(?:,|$)/; my $ds_name = $1; $key =~ /(?:[:,])(?:path|context)=(.*?)(?:,|$)/; - $ds_name .= '.' . $1; - $key =~ /(?:[:,])name=(.*?)(?:,|$)/; $ds_name .= '.' . $1; + $key =~ /(?:[:,])name=(.*?)(?:,|$)/; # double quote a virer + my $tmp_name = $1; + $tmp_name =~ s/^"(.*)"$/$1/; + $ds_name .= '.' . $tmp_name; if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $ds_name !~ /$self->{option_results}->{filter_name}/) { diff --git a/apps/tomcat/jmx/mode/listdatasources.pm b/apps/tomcat/jmx/mode/listdatasources.pm index a3bb7ee3e..babbeec93 100644 --- a/apps/tomcat/jmx/mode/listdatasources.pm +++ b/apps/tomcat/jmx/mode/listdatasources.pm @@ -61,6 +61,7 @@ sub manage_selection { my $path = $1; $mbean =~ /(?:[:,])name=(.*?)(?:,|$)/; my $name = $1; + $name =~ s/^"(.*)"$/$1/; if (defined($self->{option_results}->{filter_host}) && $self->{option_results}->{filter_host} ne '' && $host !~ /$self->{option_results}->{filter_host}/) {