Thursday, November 11, 2021

LibreNMS integration with Oxidized

I'm not too familiar with ruby so I'm having trouble interpreting what this error requires of me.

oxidized@librenms:~$ oxidizedSSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error)Traceback (most recent call last):       20: from /usr/local/bin/oxidized:23:in \<main>'       19: from /usr/local/bin/oxidized:23:in \load'       18: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/bin/oxidized:8:in `<top (required)>'       17: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/cli.rb:13:in `run'       16: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:4:in `new'       15: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:4:in `new'       14: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:14:in `initialize'       13: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:14:in `new'       12: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:125:in `initialize'       11: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:10:in `load'       10: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:130:in `with_lock'        9: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:130:in `synchronize'        8: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:15:in `block in load'        7: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/source/http.rb:21:in `load'        6: from /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/source/http.rb:74:in `read_http'        5: from /usr/lib/ruby/2.7.0/net/http.rb:1483:in `request'        4: from /usr/lib/ruby/2.7.0/net/http.rb:932:in `start'        3: from /usr/lib/ruby/2.7.0/net/http.rb:943:in `do_start'        2: from /usr/lib/ruby/2.7.0/net/http.rb:1009:in `connect'        1: from /usr/lib/ruby/2.7.0/net/protocol.rb:44:in `ssl_socket_connect'/usr/lib/ruby/2.7.0/net/protocol.rb:44:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error) (OpenSSL::SSL::SSLError)``

oxidized@librenms:~$ curl -Lks 'https://git.io/rg-ssl' | rubyHere's your Ruby and OpenSSL environment:

Ruby:           2.7.0p0 (2019-12-25 revision 647ee6f091eafcce70ffb75ddf7e121e192ab217) [x86_64-linux-gnu]RubyGems:       3.1.2Bundler:        2.1.2Compiled with:  OpenSSL 1.1.1f  31 Mar 2020Loaded version: OpenSSL 1.1.1f  31 Mar 2020SSL_CERT_FILE:  /usr/lib/ssl/cert.pemSSL_CERT_DIR:   /usr/lib/ssl/certs

With that out of the way, let's see if you can connect to rubygems.org...

Bundler connection to rubygems.org:       success ✅RubyGems connection to rubygems.org:      success ✅Ruby net/http connection to rubygems.org: success ✅

Hooray! This Ruby can connect to rubygems.org. You are all set to use Bundler and RubyGems. 

Your guidance would be highly appreciated.



No comments:

Post a Comment