# Logstash-input-jmx repository does not install

**URL:** https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483
**Category:** Logstash
**Created:** [May 16, 2019, 9:28pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483 "2019-05-16T21:28:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ashesfall](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ashesfall](https://discuss.elastic.co/u/ashesfall)
#### Post date: [May 16, 2019, 9:28pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/1 "2019-05-16T21:28:01Z")

</div>

When following the instructions in the readme at this repository:

> **[logstash-plugins/logstash-input-jmx](https://github.com/logstash-plugins/logstash-input-jmx)**
>
> Contribute to logstash-plugins/logstash-input-jmx development by creating an account on GitHub.

logstash-plugin install --no-verify  
---\> Running in ae1e0380455f  
LoadError: no such file to load -- bundler  
require at org/jruby/RubyKernel.java:987  
require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54

 at /usr/share/logstash/lib/pluginmanager/bundler/logstash\_injector.rb:3 require at org/jruby/RubyKernel.java:987 (root) at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:1 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54 require at org/jruby/RubyKernel.java:987 at /usr/share/logstash/lib/pluginmanager/pack\_installer/local.rb:3 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:1 require at org/jruby/RubyKernel.java:987 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54 at /usr/share/logstash/lib/pluginmanager/pack\_installer/remote.rb:2 require at org/jruby/RubyKernel.java:987 (root) at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:1 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54 require at org/jruby/RubyKernel.java:987 at /usr/share/logstash/lib/pluginmanager/pack\_fetch\_strategy/repository.rb:5 at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:1 require at org/jruby/RubyKernel.java:987 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core\_ext/kernel\_require.rb:54 at /usr/share/logstash/lib/pluginmanager/install\_strategy\_factory.rb:4

---

<div class="post-metadata">

### Author: ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)
#### Post date: [May 17, 2019, 9:06am UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/2 "2019-05-17T09:06:23Z")

</div>

> [@ashesfall](#):
>
> logstash-input-jmx

If you want to install the plugin directly:

> ./usr/share/logstash/bin/logstash-plugin install logstash-input-jmx  
> Validating logstash-input-jmx  
> Installing logstash-input-jmx  
> Installation successful

I do not understand where is the problem apart where you miss your plugin name to install.

---

<div class="post-metadata">

### Author: ![ashesfall](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ashesfall](https://discuss.elastic.co/u/ashesfall)
#### Post date: [May 17, 2019, 5:53pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/3 "2019-05-17T17:53:04Z")

</div>

This results in a certificate validation failed error.

---

<div class="post-metadata">

### Author: ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)
#### Post date: [May 20, 2019, 6:19am UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/4 "2019-05-20T06:19:37Z")

</div>

Is your logstash behind a reverse proxy?

---

<div class="post-metadata">

### Author: ![ashesfall](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ashesfall](https://discuss.elastic.co/u/ashesfall)
#### Post date: [May 20, 2019, 4:06pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/5 "2019-05-20T16:06:59Z")

</div>

It's a build server in a data center in New York, and I need client secured with Okta to get to it, plus there are environment variables called http\_proxy and https\_proxy, so I'm guessing that it is behind some sort of proxy. I'm able to access the internet without issue though, for example maven dependencies and all of the docker containers from the hub come through without additional configuration.

Thanks for your help.

---

<div class="post-metadata">

### Author: ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)
#### Post date: [May 21, 2019, 1:19pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/6 "2019-05-21T13:19:54Z")

</div>

Have a look on this post:

> [@Read a gzip file with gzip\_lines codec](https://discuss.elastic.co/t/read-a-gzip-file-with-gzip-lines-codec/24558/12):
>
> Clone Source git clone https://github.com/logstash-plugins/logstash-codec-gzip\_lines Change gzip\_lines.rb logstash-codec-gzip\_lines/lib/logstash/codecs/gzip\_lines.rb line 32 @decoder = Zlib::GzipReader.open(data) Build Gem File cd logstash-codec-gzip\_lines gem build logstash-code-gzip\_lines.gemspec Reinstall logstash-codec-gzip\_lines cd logstash bin/plugin install /opt/logstash-codec-gzip\_lines/logstash-codec-gzip\_lines-2.0.2.gem Create list.txt File Write by yourself gzip\_line…

it might help you with what you are trying to accomplish.  
Cheers!

---

<div class="post-metadata">

### Author: ![ashesfall](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ashesfall](https://discuss.elastic.co/u/ashesfall)
#### Post date: [June 3, 2019, 2:39pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/7 "2019-06-03T14:39:51Z")

</div>

I'm sorry this did not work, or I did not understand it.

---

<div class="post-metadata">

### Author: ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)
#### Post date: [June 3, 2019, 2:55pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/8 "2019-06-03T14:55:40Z")

</div>

Ok.  
If you have access to any Logstash that is not limited by proxy or anything, you could install your plugin on that logstash instance and than extract the plugin for offline installation on your machine.

> #Install the plugin  
> bin/logstash-plugin install logstash-input-jmx
> 
> #create the plugin pack for offline extract  
> bin/logstash-plugin prepare-offline-pack --output /tmp/logstash-input-jmx.zip logstash-input-jmx
> 
> #install it on your machine behind proxy  
> /usr/share/logstash/bin/logstash-plugin install file: ///tmp/logstash-input-jmx.zip

Tested on my servers and it worked.

---

<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: [July 1, 2019, 2:55pm UTC](https://discuss.elastic.co/t/logstash-input-jmx-repository-does-not-install/181483/9 "2019-07-01T14:55:45Z")

</div>

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