All Apps and Add-ons

Monitoring of Java Virtual Machines with JMX: Why am I getting error "root config object (JMXPoller) failed to initialize"?

MarkStory
Engager

Why am I getting the following error and how to troubleshoot this?

-0500 ERROR ExecProcessor - message from "python "C:Program FilesSplunketcappsjmx_tabinjmx.py"" The root config object(JMXPoller) failed to initialize, stanza : jmx://tomcat
0 Karma

Damien_Dallimor
Ultra Champion

You have double closed your mbean element, hence your error. Below is a correct example.Also added an example of a Catalina mbean.

You need to browse the available mbeans via JConsole yourself and determine what data you want.

The domain and properties attributes of the mbean element are obtained from JConsole. It is the mbean's ObjectName.

alt text

The name attribute of the attribute element is also viewable in JConsole.

The outputname attribute of the attribute element allows you to override the field name that gets sent to Splunk.

alt text

<jmxpoller>

<jmxserver host="servername" jvmDescription="Tomcat" jmxport="8123">

<mbean domain="java.lang" properties="*" dumpAllAttributes="true"/>

<mbean domain="Catalina" properties="type=ThreadPool,name=http-bio-8080">

    <attribute name="currentThreadsBusy" outputname="threads_busy"/>

</mbean>

</jmxserver>

</jmxpoller>

Damien_Dallimor
Ultra Champion

That error means that you have a formatting or syntax error in your config.xml file.

0 Karma

MarkStory
Engager

Damien, thank you for your reply. Here is what I have in my config.xml file. Do you have an resources you could point me to in order to figure out what mbeans I should include? I can see the mbeans through jconsole but am not sure where the other syntax comes from in regards to the attributes etc. As I don't have enough karma points I'm not able to attach an image of the actual file contents and typing code within this reply always gets stripped out. Please note that I've typed everything in my config.xml file without the < or >.

jmxpoller

jmxserver host="servername" jvmDescription="Tomcat" jmxport="8123"

!dump all the attributes of every mbean in the java.lang domain--

mbean domain="java.lang" properties="*" dumpAllAttributes="true"/

/mbean

/jmxserver

/jmxpoller

Thanks,

Mark

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 ...