fix cassandra jmx
This commit is contained in:
parent
aaa4031891
commit
b35ea34133
|
@ -30,7 +30,7 @@ sub set_counters {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{maps_counters_type} = [
|
$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} = [
|
$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) {
|
if (scalar(keys %{$self->{cr}}) <= 0) {
|
||||||
$self->{output}->add_option_msg(short_msg => "No client request found.");
|
$self->{output}->add_option_msg(short_msg => "No client request found.");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
|
|
|
@ -30,7 +30,7 @@ sub set_counters {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{maps_counters_type} = [
|
$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} = [
|
$self->{maps_counters}->{thpool} = [
|
||||||
|
|
Loading…
Reference in New Issue