Feeding oxidized from librenms devices (API) not pulling

Hi All,

Could any one assist me with the API call for oxidized please?
If I curl from Oxidized server to librenms - it is sucessful

curl -H “xxxxx” http://10.10.10.11/api/v0/oxidized

{
    "hostname": "b",
    "os": "generic",
    "ip": "1.1.1.12"
},
{
    "hostname": "A",
    "os": "generic",
    "ip": "1.1.1.1"
},

If I run oxidized I am not loading any nodes

]root-aaa@xxxd:/opt/oxidized/.config# oxidized
I, [2020-09-09T20:15:48.021161 #2219955] INFO – : Oxidized starting, running as pid 2219955
I, [2020-09-09T20:15:48.022029 #2219955] INFO – : lib/oxidized/nodes.rb: Loading nodes
I, [2020-09-09T20:15:48.022150 #2219955] INFO – : lib/oxidized/nodes.rb: Loaded 0 nodes
F, [2020-09-09T20:15:48.022192 #2219955] FATAL – : Oxidized crashed, crashfile written in /opt/oxidized/crash

oxidized config is

log: /home/oxidized/.config/oxidized/log
username: ommited
resolve_dns: false
password: “ommited”
model: junos
resolve_dns: true
interval: 3600
use_syslog: true
debug: true
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 0.0.0.0:8888
next_adds_job: true
vars: {}
groups: {}
models: {}
pid: “/opt/oxidized/.config/pid”
crash:
directory: “/opt/oxidized/.config/crash”
hostnames: true
stats:
history_size: 10
input:
default: ssh, telnet
debug: true
ssh:
secure: false
ftp:
passive: true
utf8_encoded: false
output:
default: git
git:
user: oxidized
email: [email protected]
repo: “/opt/oxidized/.config/configs/devices.git”
source:
default: http
debug: false
http:
url: http://10.10.10.11/api/v0/oxidized
delimiter: !ruby/regexp /:confused:
map:
name: hostname
model: os
headers:
X-Auth-Token: “xxxx”
model_map:
juniper: junos
cisco: ios
hp: procurve
asa: asa
generic: ios

is your oxidized instance on the same machine as your librenms instance?

What does the crashfile contain? Since the process is crashing can’t really call it an issue with the api communication.

This is what I get when trying to start Oxidized

2020-09-09 21:49:31 UTC
source returns no usable nodes [Oxidized::Core::NoNodesFound]

/var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:15:in initialize' /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:4:in new’
/var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/core.rb:4:in new' /var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/cli.rb:13:in run’
/var/lib/gems/2.7.0/gems/oxidized-0.28.0/bin/oxidized:8:in <top (required)>' /usr/local/bin/oxidized:23:in load’
/usr/local/bin/oxidized:23:in `’

Hmmm ok so it crashes if no usable nodes are found, funky behaviour…

This is my working config, maybe try to change some parameters:

username: user
password: password
resolve_dns: true
interval: 3600
use_syslog: true
debug: false
threads: 4
timeout: 500
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 0.0.0.0:8888
next_adds_job: false
vars: {}
groups: {}
models: {}
pid: “/home/oxidized/.config/oxidized/pid”
crash:
directory: “/home/oxidized/.config/oxidized/crashes”
hostnames: true
stats:
history_size: 10
input:
default: ssh
debug: false
ssh:
secure: false
source:
default: http
debug: false
http:
url: http://librenms/api/v0/oxidized
map:
name: hostname
model: os
group: group
headers:
X-Auth-Token: numbersandletters
output:
default: git
git:
user: git
email: [email protected]
repo: “/home/oxidized/oxidized_repo/”
hooks:
push_to_remote:
type: githubrepo
events: [post_store]
remote_repo: ssh://git@gittything/oxidized.git
publickey: /home/oxidized/.ssh/id_rsa.pub
privatekey: /home/oxidized/.ssh/id_rsa
model_map:
arista_eos: eos
juniper: junos
fortigate: fortios
vyos: vyatta
models:
eos:
vars:
auth_methods: [ “keyboard-interactive” ]