From e67d287de48ebe18c48d5b158f7f2b88a806f7a4 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 12 Sep 2017 14:32:05 +0200 Subject: [PATCH] fix zookeeper --- apps/java/zookeeper/jmx/mode/stats.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/java/zookeeper/jmx/mode/stats.pm b/apps/java/zookeeper/jmx/mode/stats.pm index 06be4d6a2..e8032d766 100644 --- a/apps/java/zookeeper/jmx/mode/stats.pm +++ b/apps/java/zookeeper/jmx/mode/stats.pm @@ -30,7 +30,7 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'zk', type => 0, cb_prefix_output => 'prefix_zk_output', skipped_code => { -10 => 1 } }, + { name => 'zk', type => 1, cb_prefix_output => 'prefix_zk_output', skipped_code => { -10 => 1 } }, ]; $self->{maps_counters}->{zk} = [ @@ -121,7 +121,7 @@ sub manage_selection { next if ($mbean !~ /name2=(.*?)(?:,|$)/); my $type = $1; - $self->{zk} = { + $self->{zk}->{$type} = { display => $type, %{$result->{$mbean}}, };