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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...