diff --git a/apps/java/weblogic/jmx/plugin.pm b/apps/java/weblogic/jmx/plugin.pm index deef66517..eb698a91d 100644 --- a/apps/java/weblogic/jmx/plugin.pm +++ b/apps/java/weblogic/jmx/plugin.pm @@ -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', ); diff --git a/centreon/common/jvm/mode/threads.pm b/centreon/common/jvm/mode/threads.pm index ce4e78754..c335747f5 100644 --- a/centreon/common/jvm/mode/threads.pm +++ b/centreon/common/jvm/mode/threads.pm @@ -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);