All Apps and Add-ons

Trouble with JMX

shandman
Path Finder

Here is the error I am getting. I've tried looking through the python script to see where it is calling that. I am not a python guy, and am having a difficult time. I have also included the config.xml jmxservers that i have configured.

08-14-2014 09:02:13.906 -0700 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/jmx_ta/bin/jmx.py" The root config object(JMXPoller) failed to initialize, stanza : jmx://helloworld

<!-- Connect to a JVM via the remote JMX interface -->

<jmxserver host="indbill-0008.vsp.com" jvmDescription="indbilltest" jmxport="9990" jmxuser="xxxxxx" jmxpass="xxxxxxxx">
<jmxserver host="indbill-0008.vsp.com" jvmDescription="indbilltest" jmxport="9999" jmxuser="xxxxxx" jmxpass="xxxxxxxx">
<jmxserver host="ea-app0077.vsp.com" jvmDescription="pricingtest" jmxport="9999" jmxuser="xxxxxx" jmxpass="xxxxxxxx">
0 Karma

Damien_Dallimor
Ultra Champion

This error :

The root config object(JMXPoller) failed to initialize, stanza

most likely means that your configuration XML is malformed.

0 Karma

shandman
Path Finder

i tried replacing all mbean domain="java.lang" with mbean domain="*"
didn't work

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The bin/config/examples/config_notifications.xml file is just an example I used to show the general structure of this XML configuration.

0 Karma

shandman
Path Finder

Thank you so much! Here is a snapshot from my config.xml . are you saying i need to configure the config_notifications.xml ? in my config, do I need to adjust all the mbean settings?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Here's a full example from bin/config/examples/config_notifications.xml (indenting added by me):

<jmxpoller>
  <formatter className="com.dtdsoftware.splunk.formatter.TokenizedMBeanNameQuotesStrippedFormatter" />
  <!-- Connect to a JVM via the remote JMX interface -->
  <jmxserver host="10.1.1.1" jvmDescription="tomcat" jmxport="1234" jmxuser="fred" jmxpass="secret">
    <mbean domain="myAppDomain" properties="type=foo">
      <!-- Add a notification listener to this MBean -->
      <notificationListener />
    </mbean>
  </jmxserver>
</jmxpoller>
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Look again. The general schema of these files looks like this (from memory, spelling and details may vary):

<jmxpoller>
  <jmxserver lots="of" attributes="here">
    <mbean even="more" attributes="here" />
    <mbean even="more" attributes="here" />
    ...
  </jmxserver>
<jmxpoller>

Without the closing tags this XML wouldn't be valid.

0 Karma

shandman
Path Finder

no? the example files all had this format. I did not see mbeans there?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do those <jmxserver> tags contain mbeans and have closing tags?

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...