diff --git a/apps/centreon/map/jmx/mode/brokerstats.pm b/apps/centreon/map/jmx/mode/brokerstats.pm index 8ec699f67..e3f5995c8 100644 --- a/apps/centreon/map/jmx/mode/brokerstats.pm +++ b/apps/centreon/map/jmx/mode/brokerstats.pm @@ -121,8 +121,8 @@ sub manage_selection { $self->{global} = {}; $self->{global} = { - ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets}->{andIncrement}, - ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets}->{andIncrement}, + ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets}, + ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets}, }; } diff --git a/apps/centreon/map/jmx/mode/enginestats.pm b/apps/centreon/map/jmx/mode/enginestats.pm index 2ae5984dc..1f209f4f9 100644 --- a/apps/centreon/map/jmx/mode/enginestats.pm +++ b/apps/centreon/map/jmx/mode/enginestats.pm @@ -111,9 +111,9 @@ sub manage_selection { $self->{global} = { DrilldownCandidatesQueue => $result->{$mbean_engine}->{DrilldownCandidatesQueue}, - Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation}->{andIncrement}, - Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation}->{andIncrement}, - Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation}->{andIncrement}, + Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation}, + Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation}, + Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation}, }; } diff --git a/apps/centreon/map/jmx/mode/events.pm b/apps/centreon/map/jmx/mode/events.pm index ea1186d86..7c5e2f274 100644 --- a/apps/centreon/map/jmx/mode/events.pm +++ b/apps/centreon/map/jmx/mode/events.pm @@ -91,13 +91,11 @@ sub manage_selection { ]; my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 0); - my $event_counters = $1 if ($result->{$mbean_event}->{EventCounter} =~ /\{(.*?)\}/); - + $self->{global} = {}; - foreach my $counter (split(',', $event_counters)) { - next if ($counter !~ /(\w+)\=(\d+)/); - $self->{global}->{$1} = $2; + foreach my $counter (keys %{$result->{$mbean_event}->{EventCounter}}) { + $self->{global}->{$counter} = $result->{$mbean_event}->{EventCounter}->{$counter}; } }