All Apps and Add-ons

JMX and splunk : unable to get data

qchevalier
New Member

Hello,

I installed JMX 2.0 on Splunk 6.0, on my laptop (Windows 😎 to try Splunk.
I use java hotspot 1.6 jdk 64bit version.

I tried this config.xml :

<jmxpoller>
 <jmxserver pid="7692" jvmDescription="bypid">
  <mbean domain="java.lang" properties="type=Memory">
    <attribute name="HeapMemoryUsage:used" outputname="heapUsed"/>
    <attribute name="HeapMemoryUsage:max" outputname="heapMax"/>
  </mbean>
 </jmxserver>
</jmxpoller>

I enabled the Jmx data inputs.
I have no error in splunkd.log .
I can log in using jsoncole to the application with the pid 7692.

But unfortunately I don't have any data in the indexes. The search with index=jmx gives nothing.

What I'm doing wrong??

Other question : Can I put this app in the UniversalForwarder, and if yes, what I have to do to add it? Just put the apps in the directory SPLUNK_HOME/etc/apps/, and add config.xml to the monitor list?
EDIT : If I understood well, UF doesn't come with Python, so I'll install Python 2.7 via http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi . But then what to do next? I'll try add jmx.py to the monitor list.

Thank you for your help !

0 Karma

Damien_Dallimor
Ultra Champion

The latest release on SplunkBase, v 2.0.2 , addresses a known classloading issue related to PID attachment on Linux vs Windows.

0 Karma

Damien_Dallimor
Ultra Champion

Also, search for any errors as such :

index=_internal component=ExecProcessor jmx.py

Damien_Dallimor
Ultra Champion
0 Karma

qchevalier
New Member

I installed Python 2.7, run splunk install app jmx_ta-2.0.spl, configure the config.xml as above, but I have this error in splunkd.log :
10-29-2013 18:41 ERROR ModularInputs - Introspecting scheme=jmx: Unable to run "python "C:\Program Files\SplunkUniversalForwarder\etc\apps\jmx_ta\bin\jmx.py" --scheme": exited with code -1
10-29-2013 18:41 ERROR ModularInputs - Unable to initialize modular input "jmx" defined inside the app "jmx_ta": Introspecting scheme=jmx: Unable to run "python "C:\Program Files\SplunkUniversalForwarder\etc\apps\jmx_ta\bin\jmx.py" --scheme": exited with code -1

0 Karma

Damien_Dallimor
Ultra Champion

JMX 2.0 data collection logic is implemented as a Modular Input so please don't "....add jmx.py to the monitor list.....".

As per documentation , there is an example jmx stanza in default/inputs.conf

To run under a UF you need a local python 2.7 runtime.

0 Karma
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!

Review:





Or Learn More in Our Blog >>