I’ve just installed oxidized on my LibreNMS server in order to integrate LibreNMS with oxidized. After the install, I modified the oxidized config to allow it to pull devices from LibreNMS. oxidized will not start, and crashes every time with the following error: “no implicit conversion of String into Integer”.
Here’s the crashfile output:
2020-05-04 21:15:51 UTC
no implicit conversion of String into Integer [TypeError]
block in string_navigate' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/source/http.rb:52:in each’
string_navigate' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/source/http.rb:29:in block (2 levels) in load’
each' /var/lib/gems/2.5.0/gems/asetus-0.3.0/lib/asetus/configstruct.rb:21:in each’
block in load' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/source/http.rb:23:in each’
load' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/nodes.rb:15:in block in load’
synchronize' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/nodes.rb:130:in with_lock’
load' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/nodes.rb:125:in initialize’
new' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/core.rb:14:in initialize’
new' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/lib/oxidized/core.rb:4:in new’
run' /var/lib/gems/2.5.0/gems/oxidized-0.27.0/bin/oxidized:8:in <top (required)>’
load' /usr/local/bin/oxidized:23:in ’
I have confirmed that my API key is working by issuing “curl -H ‘X-Auth-Token: MYAPIKEY’ http://127.0.0.1/api/v0/oxidized” and it returns JSON in the format below:
Here is a copy of my oxidized config:
prompt: !ruby/regexp /^([\[email protected]]+[#>]\s?)$/
default: ssh, telnet
I’m at a loss here. Any reference I’ve been able to find of this issue so far was caused by a bad API key, but I’ve confirmed my API key is good, so i’m really striking out on a resolution.
Any help is greatly appreciated.