diff --git a/centreon-plugins/centreon/common/fastpath/mode/cpu.pm b/centreon-plugins/centreon/common/fastpath/mode/cpu.pm index 59b2517bd..937cfc652 100644 --- a/centreon-plugins/centreon/common/fastpath/mode/cpu.pm +++ b/centreon-plugins/centreon/common/fastpath/mode/cpu.pm @@ -109,7 +109,7 @@ sub run { $self->{output}->display(); $self->{output}->exit(); } - if ($cpu_usage =~ /^.*\((\S+)%\).*\((\S+)%\).*\((\S+)%\)/) { + if ($cpu_usage =~ /^.*\(\s*(\S+)%\).*\(\s*(\S+)%\).*\(\s*(\S+)%\)/) { my $cpu5sec = $1; my $cpu1min = $2; my $cpu5min = $3;