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 !
The latest release on SplunkBase, v 2.0.2 , addresses a known classloading issue related to PID attachment on Linux vs Windows.
Also, search for any errors as such :
index=_internal component=ExecProcessor jmx.py
Some useful commands in here :
http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ModInputsDevTools
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
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.