Oxidized-web

Guys,

While trying to start oxidized, it gives me the following error
Please advise

[root@xxxx librenms]# oxidized
oxidized-web not found: sudo gem install oxidized-web -
or disable web support by setting “rest: false” in your configuration
/usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:22:in rescue in initialize': oxidized-web not found: sudo gem install oxidized-web - \ (Oxidized::OxidizedError) or disable web support by setting "rest: false" in your configuration from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:19:ininitialize’
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in new' from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:innew’
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in run' from /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in<top (required)>'
from /usr/local/bin/oxidized:23:in load' from /usr/local/bin/oxidized:23:in

As the error message indicates - either you need to install the oxidized-web gem (“sudo gem install oxidized-web”) or add the setting “rest: false” to ~/.config/oxidized/config to not allow the web interface of oxidized.

1 Like

Hi Man,

I managed to install oxidized web, but now it’s crashing with the following errors

2018-02-06 15:14:52 UTC
757: unexpected token at ’

301 Moved Permanently

Moved Permanently

The document has moved here.

' [JSON::ParserError] -------------------------------------------------- /usr/share/ruby/json/common.rb:155:in `parse' /usr/share/ruby/json/common.rb:155:in `parse' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/source/http.rb:37:in `load' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:15:in `block in load' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:128:in `synchronize' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:128:in `with_lock' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:10:in `load' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:123:in `initialize' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in `new' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in `initialize' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in `new' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in `new' /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in `run' /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in `' /usr/local/bin/oxidized:23:in `load' /usr/local/bin/oxidized:23:in `'

[root@xxxx~]# sudo systemctl status oxidized
● oxidized.service - Oxidized - Network Device Configuration Backup Tool
Loaded: loaded (/usr/lib/systemd/system/oxidized.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-02-06 15:24:14 UTC; 157ms ago
Process: 25620 ExecStart=/usr/local/bin/oxidized (code=exited, status=217/USER)
Main PID: 25620 (code=exited, status=217/USER)

Feb 06 15:24:14 dl1-librenms01.pan.local systemd[1]: Started Oxidized - Network Device Configuration Backup Tool.
Feb 06 15:24:14 dl1-librenms01.pan.local systemd[1]: Starting Oxidized - Network Device Configuration Backup Tool…
Feb 06 15:24:14 dl1-librenms01.pan.local systemd[25620]: Failed at step USER spawning /usr/local/bin/oxidized: No such process
Feb 06 15:24:14 dl1-librenms01.pan.local systemd[1]: oxidized.service: main process exited, code=exited, status=217/USER
Feb 06 15:24:14 dl1-librenms01.pan.local systemd[1]: Unit oxidized.service entered failed state.
Feb 06 15:24:14 dl1-librenms01.pan.local systemd[1]: oxidized.service failed.

Fixed, there was root user missing

Hello guys!

I try to open oxidized-web but it could not possible.

Does anyone here have a procedure to install and configure oxidized?

[root@srvspoxidized oxidized]# oxidized
I, [2019-03-06T16:10:02.458478 #16070] INFO – : Oxidized starting, running as pid 16070
I, [2019-03-06T16:10:02.459471 #16070] INFO – : lib/oxidized/nodes.rb: Loading nodes
F, [2019-03-06T16:10:02.459611 #16070] FATAL – : Oxidized crashed, crashfile written in /root/.config/oxidized/crash
No such file or directory @ rb_sysopen - /root/.config/oxidized/router.db
[root@srvspoxidized oxidized]# systemctl status oxidized
Unit oxidized.service could not be found.
[root@srvspoxidized oxidized]#

[root@srvspoxidized oxidized]# gem list
oxidized (0.26.2)
oxidized-script (0.6.0)
oxidized-web (0.13.1)

Doesn’t look like you’ve configured it or made the service file.

You know its trying to load a router.db file, are you interested in automatic pull of LibreNMS?

I would roughly follow some guides out there like:
#https://techstat.net/how-to-integrate-oxidized-into-librenms/
#https://infosoda.com/index.php/2018/11/16/librenms-integrating-oxidized-on-centos-7/

Docs:
https://docs.librenms.org/Extensions/Oxidized/