From 0c5b6ae8b8302fdf307f50ae2b93e8663b754e04 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 13 Sep 2016 16:40:38 +0200 Subject: [PATCH] + update regex --- .../centreon/common/emc/navisphere/mode/hbastate.pm | 2 +- .../centreon/common/emc/navisphere/mode/portstate.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/centreon/common/emc/navisphere/mode/hbastate.pm b/centreon-plugins/centreon/common/emc/navisphere/mode/hbastate.pm index 3870a8cf3..4cb719d17 100644 --- a/centreon-plugins/centreon/common/emc/navisphere/mode/hbastate.pm +++ b/centreon-plugins/centreon/common/emc/navisphere/mode/hbastate.pm @@ -98,7 +98,7 @@ sub check_hba { my $not_logged = 0; my $logged = 0; - while ($hba_infos =~ /(SP Name:.*?)\n\n/msig) { + while ($hba_infos =~ /(SP Name:.*?)(\n\n|\Z)/msig) { my $port_infos = $1; # Not in good section diff --git a/centreon-plugins/centreon/common/emc/navisphere/mode/portstate.pm b/centreon-plugins/centreon/common/emc/navisphere/mode/portstate.pm index 517f3c340..6a01c8327 100644 --- a/centreon-plugins/centreon/common/emc/navisphere/mode/portstate.pm +++ b/centreon-plugins/centreon/common/emc/navisphere/mode/portstate.pm @@ -52,7 +52,7 @@ sub check_port { if ($self->{response} =~ /Information about each SPPORT:(.*)/msi) { my $port_infos = $1; - while ($port_infos =~ /(SP Name:.*?)\n\n/msig) { + while ($port_infos =~ /(SP Name:.*?)(\n\n|\Z)/msig) { my $port_infos = $1; # Not in good section