Hi,
I am trying to install logstash-output-zabbix plugin with below command.
$sudo ./plugin install logstash-output-zabbix
But it shows below error.
" Validating logstash-output-zabbix
"Unable to download data from https://rubygems.org/ - SocketError: initialize: name or service not known
(https://rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-zabbix"
The "name or service not known" error message indicates that it can't resolve rubygems.org in DNS. Can you fetch https://rubygems.org/latest_specs.4.8.gz by other means (e.g. with curl)?
Hi,
Is there any way, so that I can download plugin on local machine and upload to server through sftp?
what will be the location to save plugin file in that case?
It probably means your Logstash server is having difficulty downloading something (perhaps even a dependency). "Could not fetch specs from ..." implies that this is not something within Logstash, but rather a network availability issue.
Is your Logstash server behind a proxy, or in a datacenter where servers have limited ability to reach outbound servers (security)?
The zabbix output plugin has dependencies which will not be installed by merely installing the gem locally. As a result, it is trying to install the other dependencies and failing.
You could try to install the plugin to a directory on your desktop (or somewhere with complete internet access) and then copy the resultant files and/or dependencies to your locked-down Logstash instance.
Hi,
I am currently having a similar issue. Could you shed some light on how you went about resolving this issue? I tried Aaron's suggestion by copying the contents of dependencies to /opt/logstash/vendor/bundle/jruby/1.9/gems directory and then install the locally developed plugin but it didn't work.
Hi Sunil,
Bypassing proxy works for me too. But this is not what we want. Our servers are running on a private network without access to internet. We just want to be able to install this locally developed logstash plugin to be installed without having to connect to internet. The command I use to do this is as follows:
However our plugin has dependency on 2 other gems - cassandra-driver & ione. I am however downloading these gems from repository and bundling with the image. Installing these gems also go through successfully but logstash doesn't seem to look from gem local repo, instead it has its own local gems repo. I dont really know how to make logstash point to this local gem repo or atleast have these dependencies and plugin itself itself under logstash gems repo. Any help on this would be highly appreciated. Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.