fix Bug #3080 : Meta-service parsing dataperf with quote

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@12895 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Laurent Pinsivy 2012-02-14 17:16:52 +00:00
parent e480a30f13
commit 99984d5840
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ sub retrieve_by_regexp() {
my $i = 0;
while ($row2 = $DBRES2->fetchrow_hashref()) {
if (defined($metric_select)) {
$row2->{'perfdata'} =~ m/$metric_select=([0-9\.]+)/;
$row2->{'perfdata'} =~ m/\'?$metric_select\'?=([0-9\.]+)/;
if (defined($1)) {
$metric_value_tab[$i] = $1;
$i++;