mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
fix zookeeper
This commit is contained in:
parent
df74328eb8
commit
a6708189b8
@ -30,7 +30,7 @@ sub set_counters {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{maps_counters_type} = [
|
$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} = [
|
$self->{maps_counters}->{zk} = [
|
||||||
@ -121,7 +121,7 @@ sub manage_selection {
|
|||||||
next if ($mbean !~ /name2=(.*?)(?:,|$)/);
|
next if ($mbean !~ /name2=(.*?)(?:,|$)/);
|
||||||
my $type = $1;
|
my $type = $1;
|
||||||
|
|
||||||
$self->{zk} = {
|
$self->{zk}->{$type} = {
|
||||||
display => $type,
|
display => $type,
|
||||||
%{$result->{$mbean}},
|
%{$result->{$mbean}},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user