diff --git a/centreon-plugins/os/linux/local/mode/uptime.pm b/centreon-plugins/os/linux/local/mode/uptime.pm index d2c1a258f..a5d7a647e 100644 --- a/centreon-plugins/os/linux/local/mode/uptime.pm +++ b/centreon-plugins/os/linux/local/mode/uptime.pm @@ -63,7 +63,7 @@ sub run { ); my ($uptime, $idletime); - if ($stdout =~ /([0-9\.]+)\s+([0-9\.]+)/) { + if ($stdout =~ /^([0-9\.]+)\s+([0-9\.]+)/m) { ($uptime, $idletime) = ($1, $2) }