All Apps and Add-ons

Monitoring of Java Virtual Machine with JMX not sending data after upgrading Splunk Forwarder to 9.0.1 from 8.1.3

supreet
Explorer

Hello,

We have installed the add on: Monitoring of java virtual machines with JMX on the forwarder level.

It was forwarding data correctly when forwarder was on version 8.1.3. However after upgrading Forwarder to 9.0.1, it stopped working. We updated /etc/hosts file with 127.0.0.1 <hostname> and restarted splunk, The add on was sending data after that.

Once the app server was restarted, it stopped sending data again and we got the below error :

systemErrorMessage="Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: jmxrmi"

If I comment the line added in /etc/hosts, I get the below error:

2022-11-15 21:55:57 ERROR Logger=ModularInput Probing socket connection to SplunkD failed.Either SplunkD has exited ,or if not, check that your DNS configuration is resolving your system's hostname (<hostname>) correctly : Connection refused (Connection refused)

2022-11-15 21:55:57 ERROR Logger=ModularInput Determined that Splunk has probably exited, HARI KARI.

server.xml has below Listener:

<Listener accessFile="${catalina.base}/conf/jmxremote.access"
address="${base.jmx.bind}"
authenticate="true"
className="com.springsource.tcserver.serviceability.rmi.JmxSocketListener"
passwordFile="${catalina.base}/conf/jmxremote.password"
port="${base.jmx.port}"
useSSL="false"/>

the bind has below parameters in catalina.properties:

base.jmx.port=<port>
base.jmx.bind=<IP>

config.xml:

<jmxserver host="<IP>" jvmDescription="<hostname>" jmxport="<port>" jmxuser="admin" jmxpass="<jmx password>">

@Damien_Dallimor@PickleRick @gcusello@isoutamo

Labels (3)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...