[ZBX-20749] JMX Discovery wildcard not working Created: 2022 Mar 15  Updated: 2022 Mar 17

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: 5.4.11
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Dennis Whitney Assignee: Aleksey Volodin
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Discovery seems to be broken for wildcard searching, even when this is outlined in official documentation 

 

Using the JMX template discovery doesn't work.

jmx.discovery["beans","java.lang:name=*,type=GarbageCollector"] returns nothing

jmx.discovery["beans","java.lang:name=ConcurrentMarkSweep,type=GarbageCollector"] returns the bean

jmx.discovery["beans","*:name=ConcurrentMarkSweep,type=GarbageCollector"] returns the same bean

jmx.discovery["beans","*:name=*type=GarbageCollector"] returns nothing

jmx.discovery["beans","*:type=GarbageCollector"] returns nothing

 

For me I'm trying to discovery specific MQ queues, but discovery wont find the names of all the queues unless I make a specific call to a named queue.

jmx.discovery[beans,"My.Domain.Queues:ServiceType=Queue,Name=*"] returns nothing

jmx.discovery[beans,"My.Domain.Queues:ServiceType=Queue,Name=\"queue.name\""] returns the bean

jmx.discovery[beans,"My.Domain.Queues:ServiceType=Queue,Name=\"queue.*\""] returns nothing

 


Generated at Wed Apr 02 13:31:46 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.