sensu-plugins / sensu-plugins-dns

This plugin provides native DNS instrumentation for monitoring, including: record resolution
http://sensu-plugins.io
MIT License
5 stars 26 forks source link

can't install sensu-plugins-dns with ruby 2.4.1 #63

Open acqant opened 5 years ago

acqant commented 5 years ago

ERROR: Error installing zeitwerk: zeitwerk requires Ruby version >= 2.4.4.

Exception `Resolv::ResolvError' at /opt/sensu/embedded/lib/ruby/2.4.0/resolv.rb:492 - DNS result has no information for _rubygems._tcp.artprod.dev.bloomberg.com
Getting SRV record failed: DNS result has no information for _rubygems._tcp.artprod.dev.bloomberg.com
GET http://artprod.dev.bloomberg.com/artifactory/api/gems/ruby-repos/api/v1/dependencies?gems=dnsruby,public_suffix,sensu-plugin,whois,whois-parser
200 OK
GET http://artprod.dev.bloomberg.com/artifactory/api/gems/ruby-repos/api/v1/dependencies?gems=activesupport,addressable,json,mixlib-cli
200 OK
GET http://artprod.dev.bloomberg.com/artifactory/api/gems/ruby-repos/api/v1/dependencies?gems=concurrent-ruby,i18n,minitest,tzinfo,zeitwerk
200 OK
GET http://artprod.dev.bloomberg.com/artifactory/api/gems/ruby-repos/api/v1/dependencies?gems=thread_safe
200 OK
Exception `Errno::EEXIST' at /opt/sensu/embedded/lib/ruby/2.4.0/fileutils.rb:229 - File exists @ dir_s_mkdir - /opt/sensu/embedded/lib/ruby/gems/2.4.0
Exception `Gem::InstallError' at /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:611 - zeitwerk requires Ruby version >= 2.4.4.
ERROR:  Error installing sensu-plugins-dns:
        zeitwerk requires Ruby version >= 2.4.4.
acqant commented 5 years ago

/opt/sensu/embedded/bin/gem --debug install -V sensu-plugins-dns -v 1.4.1

That worked