fix cassandra jmx

This commit is contained in:
garnier-quentin 2019-01-17 16:09:22 +01:00
parent aaa4031891
commit b35ea34133
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -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} = [