From a013ad7e472a986c6cd3d40bc0a62e2ee9ba1082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Prud=27homme?= Date: Fri, 7 Jul 2017 09:40:31 +0200 Subject: [PATCH] Take into account non HTTP samples --- centreon-plugins/apps/jmeter/mode/scenario.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/jmeter/mode/scenario.pm b/centreon-plugins/apps/jmeter/mode/scenario.pm index 9ead71843..43994eb8c 100644 --- a/centreon-plugins/apps/jmeter/mode/scenario.pm +++ b/centreon-plugins/apps/jmeter/mode/scenario.pm @@ -103,7 +103,7 @@ sub run { my $p = XML::Parser->new(NoLWP => 1); my $xp = XML::XPath->new(parser => $p, xml => $stdout); - my $listHttpSampleNode = $xp->findnodes('/testResults/httpSample'); + my $listHttpSampleNode = $xp->findnodes('/testResults/httpSample|/testResults/sample'); my $timing0 = 0; my $timing1 = 0;