diff --git a/centreon-plugins/storage/hp/storeonce/ssh/mode/components/hardware.pm b/centreon-plugins/storage/hp/storeonce/ssh/mode/components/hardware.pm index 4c86dd885..904d1ee0b 100644 --- a/centreon-plugins/storage/hp/storeonce/ssh/mode/components/hardware.pm +++ b/centreon-plugins/storage/hp/storeonce/ssh/mode/components/hardware.pm @@ -65,7 +65,7 @@ sub check { $self->{components}->{hardware} = {name => 'hardwares', total => 0, skip => 0}; return if ($self->check_filter(section => 'hardware')); - return if ($self->{result} !~ />\s*hardware show status details(.*?)\n>/msi); + return if ($self->{result} !~ /[>#]\s*hardware show status details(.*?)\n[>#]/msi); my $content = $1; while ($content =~ /^(\S+[^\n]*?)\n\s+(.*?)\n\s*?\n/msgi) { diff --git a/centreon-plugins/storage/hp/storeonce/ssh/mode/components/serviceset.pm b/centreon-plugins/storage/hp/storeonce/ssh/mode/components/serviceset.pm index a6d44aac1..d66455694 100644 --- a/centreon-plugins/storage/hp/storeonce/ssh/mode/components/serviceset.pm +++ b/centreon-plugins/storage/hp/storeonce/ssh/mode/components/serviceset.pm @@ -56,7 +56,7 @@ sub check { $self->{components}->{serviceset} = {name => 'service sets', total => 0, skip => 0}; return if ($self->check_filter(section => 'serviceset')); - return if ($self->{result} !~ />\s*serviceset show status(.*?)\n>/msi); + return if ($self->{result} !~ /[>#]\s*serviceset show status(.*?)\n[>#]/msi); my $content = $1; while ($content =~ /^Service Set (\d+).*?\n(.*?)\n\s*?\n/msgi) {