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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...