-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
3.4.1
-
Linux
if I do a jmx discovery for jboss jdbc datasources in zabbix, i get the following:
jmx.discovery[beans,"jboss.as:subsystem=datasources,statistics=jdbc,data-source=*"]
{"data":[ { "{#JMXDOMAIN}":"jboss.as", "{#JMXSUBSYSTEM}":"datasources", "{#JMXSTATISTICS}":"jdbc", "{#JMXOBJ}":"jboss.as:subsystem=datasources,data-source=DB_IDI_USER,statistics=jdbc", "{#JMXDATA-SOURCE}":"DB_IDI_USER" } ] }
Because {#JMXDATA-SOURCE} contains illegal character "-" this macro cannot be used inside the name for ITEM PROTOTYPE.
There is no way to circumvent this, because there is no preprocessing available for the item name, but for the item value ONLY
I could use {#JMXOBJ} in place of {#JMXDATA-SOURCE} of course, but we would have very long item names such as "jboss.as:subsystem=datasources,data-source=DB_IDI_USER,statistics=jdbc" which is something I really don't want
I think we should have something similar to value preprocessing also for the prototype item name
Thank you for listening to me
Best regards
Andrea
- duplicates
-
ZBX-12705 Java Gateway generates invalid lld macro names during bean discovery
- Closed