+ Fix mode threads for jmx standard jvm

This commit is contained in:
garnier-quentin 2015-06-30 15:11:47 +02:00
parent f89e82bdc8
commit 32f711efe7
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ sub new {
'class-count' => 'centreon::common::jvm::mode::classcount',
'memory' => 'centreon::common::jvm::mode::memory',
'memory-detailed' => 'centreon::common::jvm::mode::memorydetailed',
'threads' => 'ccentreon::common::jvm::mode::threads',
'threads' => 'centreon::common::jvm::mode::threads',
'work-manager' => 'apps::java::weblogic::jmx::mode::workmanager',
);

View File

@ -189,7 +189,7 @@ sub manage_selection {
my $mbean = 'java.lang:type=Threading';
$self->{request} = [
{ mbean => $mbean, attributes => [ { name => 'TotalStartedThreadCount ' }, { name => 'ThreadCount' }, { name => 'DaemonThreadCount ' } ] },
{ mbean => $mbean, attributes => [ { name => 'TotalStartedThreadCount' }, { name => 'ThreadCount' }, { name => 'DaemonThreadCount' } ] },
];
my $result = $self->{connector}->get_attributes(request => $self->{request}, nothing_quit => 1);