mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
+ Fix command for root user
This commit is contained in:
parent
d66a69d80e
commit
921b83c5d2
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user