From b35ea34133a4ca7ba11f9adcf909bd14b53e6567 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 17 Jan 2019 16:09:22 +0100 Subject: [PATCH] fix cassandra jmx --- database/cassandra/jmx/mode/clientrequestsusage.pm | 5 ++++- database/cassandra/jmx/mode/threadpoolsusage.pm | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/database/cassandra/jmx/mode/clientrequestsusage.pm b/database/cassandra/jmx/mode/clientrequestsusage.pm index 47e50c3db..6c55f8cbb 100644 --- a/database/cassandra/jmx/mode/clientrequestsusage.pm +++ b/database/cassandra/jmx/mode/clientrequestsusage.pm @@ -30,7 +30,7 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'cr', type => 1, cb_prefix_output => 'prefix_cr_output', skipped_code => { -10 => 1 } }, + { name => 'cr', type => 1, cb_prefix_output => 'prefix_cr_output', message_multiple => 'All client requests are ok', skipped_code => { -10 => 1 } }, ]; $self->{maps_counters}->{cr} = [ @@ -122,6 +122,9 @@ sub manage_selection { } } + use Data::Dumper; + print Data::Dumper::Dumper($self->{cr}); + if (scalar(keys %{$self->{cr}}) <= 0) { $self->{output}->add_option_msg(short_msg => "No client request found."); $self->{output}->option_exit(); diff --git a/database/cassandra/jmx/mode/threadpoolsusage.pm b/database/cassandra/jmx/mode/threadpoolsusage.pm index f741903fb..7ffc5aac1 100644 --- a/database/cassandra/jmx/mode/threadpoolsusage.pm +++ b/database/cassandra/jmx/mode/threadpoolsusage.pm @@ -30,7 +30,7 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'thpool', type => 1, cb_prefix_output => 'prefix_thpool_output', skipped_code => { -10 => 1 } }, + { name => 'thpool', type => 1, cb_prefix_output => 'prefix_thpool_output', message_multiple => 'All thread pools are ok', skipped_code => { -10 => 1 } }, ]; $self->{maps_counters}->{thpool} = [