diff --git a/centreon-plugins/snmp_standard/mode/processcount.pm b/centreon-plugins/snmp_standard/mode/processcount.pm index 26fbe8cb0..f8803ce2c 100644 --- a/centreon-plugins/snmp_standard/mode/processcount.pm +++ b/centreon-plugins/snmp_standard/mode/processcount.pm @@ -338,7 +338,7 @@ sub run { foreach my $pid (keys %{$self->{results}}) { my $long_msg = sprintf("Process '%s'", $pid); - for my $key (keys $self->{results}->{$pid}) { + foreach my $key (keys %{$self->{results}->{$pid}}) { $long_msg .= sprintf(" [%s: %s]", $key, $self->{results}->{$pid}->{$key}); } $self->{output}->output_add(long_msg => $long_msg);