While trying to start oxidized, it gives me the following error
[root@xxxx librenms]# oxidized
oxidized-web not found: sudo gem install oxidized-web -
or disable web support by setting “rest: false” in your configuration
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’
new' from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:innew’
run' from /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in<top (required)>'
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.
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
The document has moved here.
/usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:15:in `block in load'
[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: Started Oxidized - Network Device Configuration Backup Tool.
Feb 06 15:24:14 dl1-librenms01.pan.local systemd: Starting Oxidized - Network Device Configuration Backup Tool…
Feb 06 15:24:14 dl1-librenms01.pan.local systemd: Failed at step USER spawning /usr/local/bin/oxidized: No such process
Feb 06 15:24:14 dl1-librenms01.pan.local systemd: oxidized.service: main process exited, code=exited, status=217/USER
Feb 06 15:24:14 dl1-librenms01.pan.local systemd: Unit oxidized.service entered failed state.
Feb 06 15:24:14 dl1-librenms01.pan.local systemd: oxidized.service failed.
Fixed, there was root user missing
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]# gem list
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: