[ZBX-23948] JMX - problem with tabular data Created: 2024 Jan 17 Updated: 2025 Feb 27 Resolved: 2024 Apr 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 6.0.24 |
Fix Version/s: | 6.0.29rc1, 6.4.14rc1, 7.0.0beta3, 7.0 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Jacek | Assignee: | dimir |
Resolution: | Fixed | Votes: | 9 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
||||
Issue Links: |
|
||||
Team: | |||||
Sprint: | S24-W8/9, S24-W10/11, S24-W12/13, S24-W14/15 | ||||
Story Points: | 4 |
Description |
Problem: There is no problem getting values for top-level composite data, such as LastGcInfo.GcThreadCount or LastGcInfo.id, but when it comes to more complex tabular data, Zabbix either doesn't detect it at all or (when asked explicitly) returns errors. File GarbColAttrs_Zabbix lists all attributes detected by Zabbix, for comparison file GarbColAttrs_JMXterm lists all parameters for the LastGcInfo attribute seen in JMXterm tool. Only simple parameters (i.e. starttime, endtime, duration, id, GcThreadCount) overlap, more complex data is not existant from Zabbix perspective. I've tried various combinations of paths in Zabbix item key, but in each case, depending on the length of the path, I've received different errors. Eg.:
Referring to How to correctly retrieve data from nested parameters? Steps to reproduce:
JMX agent, key: jmx.discovery[attributes,"*:type=GarbageCollector,name=*"]
JMX agent, e.g. key: jmx["java.lang:type=GarbageCollector,name=G1 Young Generation","LastGcInfo.memoryUsageBeforeGc.Metaspace.value.used"] Thanks in advance for help. |
Comments |
Comment by dimir [ 2024 Jan 18 ] |
Indeed looks like the change in |
Comment by Jacek [ 2024 Jan 18 ] |
Thanks Dimir for response. If any additional information or testing is needed, I would be happy to help if possible. |
Comment by dimir [ 2024 Feb 22 ] |
This one is correct: jmx["java.lang:type=GarbageCollector,name=G1 Young Generation","LastGcInfo.memoryUsageBeforeGc.Metaspace.value.used"] and will be supported. |
Comment by dimir [ 2024 Feb 22 ] |
Fixed in development branch for 6.0: feature/ZBX-23948-6.0 Feel free to try it out jacek kupski, let me know if you have questions. |
Comment by dimir [ 2024 Apr 04 ] |
OverviewBefore this fix TabularData data was only supported in the beginning of the MBean object. After this fix TabularData data is supported in any place of the MBean object. Fixed in
|