All Apps and Add-ons

Configuration issue with - Monitoring of Java Virtual Machines with JMX

gregbujak
Path Finder

Splunk 6
linux cluster - distributed search head/2 indexers
Monitoring of Java Virtual Machines with JMX - jmx_ta - 2.0.3

Configuring the default config.xml file and then enabling the modular (default) input. I have activemq enabled with JMX. I am able to connect and get jmx data.

First issue: I am getting a number of the following ERROR(s):

11-13-2013 12:05:45.664 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/jmx_ta/bin/jmx.py" Error executing JMX stanza jmx://helloworld : No such attribute: value
11-13-2013 12:05:45.666 -0500 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/jmx_ta/bin/jmx.py" Error executing JMX stanza jmx://helloworld : No such attribute: used
...

What do I need to change (on the JVM) to enable these? And how do I figure out which attributes these are on the config.xml - these repeat over and over for the different mbeans.


Next issue (and it very well may not have anything to do with the app):

The following query returns all Threading related performance counters -

index=jmx sourcetype=jmx host="validationdemo" mbean_domain="java.lang" mbean_property_type="Threading" jvmDescription=activemq

Changing

mbean_property_type="Threading" 

to

mbean_property_type="*"

Should return the world of types. Instead it only returns GC related performance counters. Am I missing something obvious?
Thanks.

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Question 1

The default config.xml file is just an exmaple.I've tried to make it as generic as possible for the multitude of JVM environments that it can potentially be deployed against. So you may see some MBean attributes that are not present in your target JVM.

You should use a tool such as JConsole to browse the target JVM to see what MBeans and MBean attributes are available , and configure your config.xml file accordingly.

Question 2

index=jmx mbean_domain=java.lang mbean_property_type=*

View solution in original post

Damien_Dallimor
Ultra Champion

Question 1

The default config.xml file is just an exmaple.I've tried to make it as generic as possible for the multitude of JVM environments that it can potentially be deployed against. So you may see some MBean attributes that are not present in your target JVM.

You should use a tool such as JConsole to browse the target JVM to see what MBeans and MBean attributes are available , and configure your config.xml file accordingly.

Question 2

index=jmx mbean_domain=java.lang mbean_property_type=*

Damien_Dallimor
Ultra Champion

My answer to 2 is that search string works perfectly well for me.Note, quote marks are not around the asterisk.

0 Karma

gregbujak
Path Finder

Thanks. It makes sense. For some reason I was thinking that it was targeting the oracle jvm (staring to long at it).

Not following your answer to question 2 as thats what returns only GC related info (at least in the field extractions). This might looks more like a upper limit to the number of field extractions you get, but its odd that it targets a single type.

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 ...