Splunk Enterprise

Why can't I run the poll_jmx.sh

New Member

[~]$ sudo /opt/splunk/etc/apps/SPLUNK4JMX/bin/poll_jmx.sh
JVM_MEMORY=-Xms64m -Xmx64m
JAVA_OPTS=-Xms64m -Xmx64m
Exception in thread "main" java.lang.NoClassDefFoundError: com/dtdsoftware/splunk/JMXMBeanPoller
Caused by: java.lang.ClassNotFoundException: com.dtdsoftware.splunk.JMXMBeanPoller
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.dtdsoftware.splunk.JMXMBeanPoller. Program will exit.

Tags (1)
0 Karma


That's probably because the SPLUNK_HOME environment variable isn't set. Try the following command instead:

sudo /opt/splunk/bin/splunk cmd /opt/splunk/etc/apps/SPLUNK4JMX/bin/poll_jmx.sh

Ultra Champion

Yes that is most definately the problem.
Also, read the docs and ensure you've followed the setup steps.

0 Karma
Get Updates on the Splunk Community!

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...

What's New in Splunk Cloud Platform 9.0.2208?!

Howdy!  We are happy to share the newest updates in Splunk Cloud Platform 9.0.2208! Analysts can benefit ...

Admin Console: A Single, Unified Interface for All Your Cloud Admin Needs

WATCH NOWJoin us to learn how the admin console can save you time and give you more control over the Splunk® ...