All Apps and Add-ons

Where to add additional JVM arguments to the Splunk Add-on for Java Management Extensions?

colbymontgomery
New Member

In the previous application ("SPLUNK4JMX") there was a configuration item that allowed us to set extra JVM arguments. These were configured under the "Data inputs" -> JMX -> "JMX Input Name"-> "Additional JVM System Properties".

I have not been able to find a similar location in the new Splunk_TA_jmx add-on. Does the capability to pass JVM arguments remain in this TA? I need to add this JVM argument in order to read the JMX MBeans from my IBM Liberty servers:

-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true

0 Karma
1 Solution

bonito
Explorer

In the more recent JMX add-on, a single JVM process is used for all connections. It's spawned in the jmx.py script, so you need to set it's arguments there.

You can add arguments to it, by modifying the jmx.py script in Splunk_TA_JMX/bin

Roughly line 68:

JAVA_ARGS.insert(-1, "-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true")

Yes, it would be nice if the ability to set these properties more easily was returned -- almost every JMX connection that I've used needs something like this to function properly.

View solution in original post

0 Karma

bonito
Explorer

In the more recent JMX add-on, a single JVM process is used for all connections. It's spawned in the jmx.py script, so you need to set it's arguments there.

You can add arguments to it, by modifying the jmx.py script in Splunk_TA_JMX/bin

Roughly line 68:

JAVA_ARGS.insert(-1, "-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true")

Yes, it would be nice if the ability to set these properties more easily was returned -- almost every JMX connection that I've used needs something like this to function properly.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...