# How to make the JMX plugin work?

**URL:** https://discuss.elastic.co/t/how-to-make-the-jmx-plugin-work/83591
**Category:** Logstash
**Created:** [April 25, 2017, 3:56pm UTC](https://discuss.elastic.co/t/how-to-make-the-jmx-plugin-work/83591 "2017-04-25T15:56:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)
#### Post date: [April 25, 2017, 3:56pm UTC](https://discuss.elastic.co/t/how-to-make-the-jmx-plugin-work/83591/1 "2017-04-25T15:56:56Z")

</div>

Completely new to Elastic stack, just playing around, to see how easy it might be to do the sorts of things we're likely to want.

I've tried to use the JMX plugin, but get the following in the log. It appears to be failing to make an SSL connection, but I haven't (knowingly) told it to make an SSL connection, and I don't want it to make an SSL connection. What's going on, and how do I stop it please?

2017-04-25T16:45:00,004][INFO][logstash.inputs.jmx] Loading configuration files in path {:path=\>"/etc/logstash/jmxconf"}  
[2017-04-25T16:45:04,567][ERROR][logstash.inputs.jmx] error during JRMP connection establishment; nested exception is:  
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake\_failure  
[2017-04-25T16:45:04,568][ERROR][logstash.inputs.jmx] sun.rmi.transport.tcp.TCPChannel.createConnection(sun/rmi/transport/tcp/TCPChannel.java:304)  
sun.rmi.transport.tcp.TCPChannel.newConnection(sun/rmi/transport/tcp/TCPChannel.java:202)  
sun.rmi.server.UnicastRef.invoke(sun/rmi/server/UnicastRef.java:130)  
java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(java/rmi/server/RemoteObjectInvocationHandler.java:227)  
java.rmi.server.RemoteObjectInvocationHandler.invoke(java/rmi/server/RemoteObjectInvocationHandler.java:179)  
javax.management.remote.rmi.RMIConnector.getConnection(javax/management/remote/rmi/RMIConnector.java:2430)  
javax.management.remote.rmi.RMIConnector.connect(javax/management/remote/rmi/RMIConnector.java:308)  
javax.management.remote.JMXConnectorFactory.connect(javax/management/remote/JMXConnectorFactory.java:270)  
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)  
RUBY.create\_connection(/usr/share/logstash/vendor/bundle/jruby/1.9/gems/jmx4r-0.1.4/lib/jmx4r.rb:220)  
RUBY.connection(/usr/share/logstash/vendor/bundle/jruby/1.9/gems/jmx4r-0.1.4/lib/jmx4r.rb:137)  
RUBY.thread\_jmx(/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jmx-3.0.1/lib/logstash/inputs/jmx.rb:217)  
RUBY.run(/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jmx-3.0.1/lib/logstash/inputs/jmx.rb:321)  
java.lang.Thread.run(java/lang/Thread.java:745)

---

<div class="post-metadata">

### Author: ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)
#### Post date: [April 26, 2017, 8:27am UTC](https://discuss.elastic.co/t/how-to-make-the-jmx-plugin-work/83591/2 "2017-04-26T08:27:28Z")

</div>

Looks like the solution was to include

-Dcom.sun.management.jmxremote.ssl=false

at the JMX server.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 24, 2017, 8:35am UTC](https://discuss.elastic.co/t/how-to-make-the-jmx-plugin-work/83591/3 "2017-05-24T08:35:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
