mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
+ update regex
This commit is contained in:
parent
f3bd0f5995
commit
0c5b6ae8b8
@ -98,7 +98,7 @@ sub check_hba {
|
|||||||
|
|
||||||
my $not_logged = 0;
|
my $not_logged = 0;
|
||||||
my $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;
|
my $port_infos = $1;
|
||||||
|
|
||||||
# Not in good section
|
# Not in good section
|
||||||
|
@ -52,7 +52,7 @@ sub check_port {
|
|||||||
if ($self->{response} =~ /Information about each SPPORT:(.*)/msi) {
|
if ($self->{response} =~ /Information about each SPPORT:(.*)/msi) {
|
||||||
my $port_infos = $1;
|
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;
|
my $port_infos = $1;
|
||||||
|
|
||||||
# Not in good section
|
# Not in good section
|
||||||
|
Loading…
x
Reference in New Issue
Block a user