From 30500a885b426b46db7cdae81c54c57b81ef0e3b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 20 Dec 2017 15:01:30 +0100 Subject: [PATCH] add case for tomcat 8 --- apps/tomcat/jmx/mode/datasourceusage.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/tomcat/jmx/mode/datasourceusage.pm b/apps/tomcat/jmx/mode/datasourceusage.pm index b1360f721..e43485452 100644 --- a/apps/tomcat/jmx/mode/datasourceusage.pm +++ b/apps/tomcat/jmx/mode/datasourceusage.pm @@ -159,6 +159,8 @@ sub manage_selection { $self->{request} = [ { mbean => "*:type=DataSource,class=*,context=*,host=*,name=*", attributes => [ { name => 'numActive' }, { name => 'numIdle' }, { name => 'maxIdle' }, { name => 'maxTotal' }, { name => 'maxActive' } ] }, + { mbean => "*:type=DataSource,class=*,path=*,host=*,name=*", attributes => + [ { name => 'numActive' }, { name => 'numIdle' }, { name => 'maxIdle' }, { name => 'maxTotal' }, { name => 'maxActive' } ] }, ]; my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 1);