We currently run rancid and librenms separately. Using the post here https://www.reddit.com/r/LibreNMS/comments/7hb21o/librenms_oxidized/ I was able to setup oxidized and have it running with no issues. I can curl to the oxidized server with the hostname of some of our network hardware. However, no matter how many guides I have followed, when I click on the config tab I get: we couldn’t retrieve the device information from Oxidized. Turning on debug for librenms doesn’t show any sql or php errors. I can’t seem to enable enough debug option in oxidized to show incoming API requests. Here is my config for oxidized:
---
username: oxidized
password: -----------
model: junos
interval: 300
use_syslog: false
debug: true
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /([\[email protected]]+[#>]\s?)$/
rest: 10.241.100.16:8080
next_adds_job: false
vars: {}
groups: {}
models: {}
pid: "/root/.config/oxidized/pid"
log: "/root/.config/oxidized/log"
input:
default: ssh, telnet
debug: true
ssh:
secure: false
output:
default: git
git:
user: git
email: [email protected]
repo: "/root/.config/oxidized/devices.git"
source:
default: http
http:
url: http://10.241.100.16/api/v0/oxidized
map:
name: hostname
model: os
group: group
headers:
X-Auth-Token: '-------------------------'
model_map:
cisco: ios
juniper: junos
hooks:
post-commit:
type: exec
events: [node_success, post_store]
cmd: 'cd /root/.config/oxidized/devices.git && git push -f -q /root/.config/oxidized/devices.git master'
The data that oxidized stores is as follows:
{:name=>"10.229.254.16", :full_name=>"10.229.254.16", :ip=>"10.229.254.16", :group=>nil, :model=>"JunOS", :last=> {:start=>2018-05-22 00:19:26 UTC, :end=>2018-05-22 00:19:39 UTC, :status=>:success, :time=>13.361407251}, :vars=>nil}
All oxidized options are enabled on the librenms side of things and I am using http://10.241.100.16:8080 fpr the API field. Its funny that oxidized can pull in all the information from librenms but librenms can’t pull the config. I have been working on this all day today and I can’t figure it out. Please, help!