Hello everyone,
I have a problem with Oxidized and LibreNMS. I don’t see the backup of my devices on LibreNMS web interface. Oxidized (web) works well when is alone.
Oxidized and LibreNMS run on fresh install on CentOS 8, installation command :
dnf install curl gnupg2 -y
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm requirements
rvm list known
rvm install 2.6.3
rvm use 2.6.3 --default
ruby --version
yum install make cmake which sqlite-devel openssl-devel libssh2-devel ruby gcc ruby-devel libicu-devel gcc-c++
gem install oxidized
gem install oxidized-script oxidized-web
And I have create a oxidized.service in /etc/systemd/system/
I have activated the service and the service start poperly.
I have try to start Oxidized directly on debug mode, when I go to the config tab of a device backed up by Oxidized, I have this errors :
/usr/local/rvm/gems/ruby-2.6.3/wrappers/oxidized --debug
Puma starting in single mode…
- Version 3.11.4 (ruby 2.6.3-p62), codename: Love Song
- Min threads: 0, max threads: 16
- Environment: development
- Listening on tcp://0.0.0.0:8888
Use Ctrl-C to stop
2020-10-28 11:00:02 - NoMethodError - undefined methodoutput' for nil:NilClass: /usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:176:in
block in yield_node_output’
/usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:130:insynchronize' /usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:130:in
with_lock’
/usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:174:inyield_node_output' /usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-0.28.0/lib/oxidized/nodes.rb:62:in
fetch’
/usr/local/rvm/gems/ruby-2.6.3/gems/oxidized-web-0.13.1/lib/oxidized/web/webapp.rb:91:inblock in <class:WebApp>' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:inblock in compile!' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in
block (3 levels) in route!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:inroute_eval' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in
block (2 levels) in route!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:inblock in process_route' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in
catch’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:inprocess_route' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in
block in route!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:ineach' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in
route!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:inblock in dispatch!' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in
block in invoke’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:incatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in
invoke’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:indispatch!' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in
block in call!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:inblock in invoke' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in
catch’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:ininvoke' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in
call!’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/xss_header.rb:18:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/path_traversal.rb:16:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/json_csrf.rb:18:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/base.rb:49:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-protection-1.5.5/lib/rack/protection/frame_options.rb:31:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/nulllogger.rb:9:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/head.rb:13:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/show_exceptions.rb:25:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:inblock in call' /usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in
synchronize’
/usr/local/rvm/gems/ruby-2.6.3/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/urlmap.rb:66:in
block in call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/urlmap.rb:50:ineach' /usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/urlmap.rb:50:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/rack-1.6.13/lib/rack/builder.rb:153:incall' /usr/local/rvm/gems/ruby-2.6.3/gems/puma-3.11.4/lib/puma/configuration.rb:225:in
call’
/usr/local/rvm/gems/ruby-2.6.3/gems/puma-3.11.4/lib/puma/server.rb:632:inhandle_request' /usr/local/rvm/gems/ruby-2.6.3/gems/puma-3.11.4/lib/puma/server.rb:446:in
process_client’
/usr/local/rvm/gems/ruby-2.6.3/gems/puma-3.11.4/lib/puma/server.rb:306:inblock in run' /usr/local/rvm/gems/ruby-2.6.3/gems/puma-3.11.4/lib/puma/thread_pool.rb:120:in
block in spawn_thread’
Thanks a lot !