We've installed Splunk 6 on our server which contains about 6 different JMX instances. We want to hook all of them up into our Splunk JMX plugin.
Is it as easy as editing the config.xml file and adding a new jmx server host? Currently this is:
<jmxserver host="[[system name]]" jvmDescription="common_raw" jmxport="53632">
Which works fine but we want to onboard other JMX instances as well. Is there a simpler method I've missed? Sorry for not trying it out beforehand - this is a production box so I don't want to muck things up for everybody!
You have a dangling jmxserver closing tag.
</jmxserver>
<formatter className="com.dtdsoftware.splunk.formatter.TokenizedMBeanNameQuotesStrippedFormatter" />
<!-- cluster example, many JVMs that have the same MBeans can be conveniently grouped together -->
<cluster name="IDM_QAC" description="A cluster of IDM APPS in QAC">
<!-- Mbeans common to all cluster members -->
<mbean domain="java.lang" properties="type=Memory">
<attribute name="HeapMemoryUsage:used" outputname="heapUsed"/>
<attribute name="HeapMemoryUsage:max" outputname="heapMax"/>
</mbean>
<!-- cluster members with many examples of connecting to JMX Servers -->
<jmxserver host="devrha11" jvmDescription="QAC_OAM1" jmxport="9001"/>
<jmxserver host="devrha12" jvmDescription="QAC_OAM2" jmxport="9001"/>
<jmxserver host="devrha15" jvmDescription="QAC_OIM1" jmxport="9001"/>
<jmxserver host="devrha16" jvmDescription="QAC_OIM2" jmxport="9001"/>
<jmxserver host="devrha50" jvmDescription="QAC_OVD1" jmxport="9001"/>
<jmxserver host="devrha51" jvmDescription="QAC_OVD1" jmxport="9001"/>
</jmxserver>
</cluster>
</jmxpoller>enter code here
Look in jmx_ta/bin/config/examples/config_cluster_example.xml for an example configuration.
Thanks for the quick reply! It looks like for a cluster of servers though...I just want the JMX instances inside the same box but outputting through different ports?
It is for a cluster of JVMs , local or remote or a mixture of both.Trust me , I wrote it 🙂
Hi Damien
Using your example cluster file .. still getting an error. Any suggestion?
validation failed: "cluster" must be terminated by the matching end-tag
Post the actual error.
Post the actual xml config you are using.
Blockquote
Blockquote
I don't see anything.