We couldn't retrieve the device information from Oxidized

Hi,

I’ve got LibreNMS and Oxidized running on the same server. It’s Centos 7 with nginx.

Oxidized seems to be working fine, it’s running as a service and is getting device list using LIbreNMS API. But in LibreNMS I’m not seeing this error message under the config tab of any device I look at:
image

curl to oxidized works fine (sanitized output):

curl http://127.0.0.1:8888/node/show/********?format=json
{“name”:“",“full_name”:"default/”,“ip”:“********”,“group”:“default”,“model”:“IOS”,“last”:{“start”:“2019-02-18 19:52:55 UTC”,“end”:“2019-02-18 19:53:00 UTC”,“status”:“success”,“time”:5.272384324},“vars”:null,“mtime”:“unknown”}

Here is the oxidized config file:


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

Here is the configuration in LibreNMS config.php:

$config[‘oxidized’][‘enabled’] = TRUE;//Set to TRUE
$config[‘oxidized’][‘url’] = ‘http://127.0.0.1:8888’;// Set the Oxidized rest URL
$config[‘oxidized’][‘reload_nodes’] = TRUE;//Set to TRUE, check documentation
$config[‘oxidized’][‘features’][‘versioning’] = TRUE;
$config[‘oxidized’][‘default_group’] = ‘default’;
$config[‘oxidized’][‘ignore_os’] = array(‘linux’,‘smartos’);

Does anyone have a clue as to how I can troubleshoot this? I’m stuck…

https://docs.librenms.org/Extensions/Oxidized/#selinux

Fantastic, that was it. I thought I had selinux turned off, but it was Enforcing :slight_smile:

Better to just configure selinux correctly as per the docs :slight_smile: