I’m working on integrating Oxidized with LibreNMS.
My setup is a separate VM for LibreNMS, and a separate VM for Oxidized.
For the most part, things are working. My LibreNMS shows the configs/versions of the switches/routers I added (both Cisco and Mikrotik).
However, for the test purposes, I used CSV Input in Oxidized, where I add my switches/routers to router.db file.
Now i’m trying to get LibreNMS updates Oxidized node list whenever a new machine is added, but so far no sucess.
Running connectivity test seems to work. See below :
Below is the service failure when the CSV source is omitted:
oxidized.service - Oxidized - Network Device Configuration Backup Tool
Loaded: loaded (/lib/systemd/system/oxidized.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-11-15 11:25:09 CET; 1s ago
Process: 2030 ExecStart=/usr/local/bin/oxidized (code=exited, status=1/FAILURE)
Main PID: 2030 (code=exited, status=1/FAILURE)
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3 /lib/oxidized/nodes.rb:125:in `initialize'
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3/lib/oxidized/core.rb:14:in `new'
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3/lib/oxidized/core.rb:14:in `initialize'
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3/lib/oxidized/core.rb:4:in `new'
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3/lib/oxidized/cli.rb:13:in `run'
Nov 15 11:25:09 oxidized oxidized[2030]: from /var/lib/gems/2.5.0/gems/oxidized-0.26.3/bin/oxidized:8:in `<top (required)>'
Nov 15 11:25:09 oxidized oxidized[2030]: from /usr/local/bin/oxidized:23:in `load'
Nov 15 11:25:09 oxidized oxidized[2030]: from /usr/local/bin/oxidized:23:in `<main>'
Nov 15 11:25:09 oxidized systemd[1]: oxidized.service: Main process exited, code=exited, status=1/FAILURE
Nov 15 11:25:09 oxidized systemd[1]: oxidized.service: Failed with result 'exit-code'.
Do you mean when you add a device in LibreNMS you want it to appear in your Oxidized install? If so you need to use LibreNMS as the source of truth for Oxidized. Our docs show how.
Ok it seems that Oxidized now has retrieved all the devices from LibreNMS and backed them up.
However, I hit another issue. for some reason the device Config TAB disappeared from LibreNMS. I had it earlier when I used CSV file source in Oxidized, i.e. when I click on a router/switch in LibreNMS, it showed a tab for config and when I click on that tab, I see that router’s/switche’s backed up configuration.