Thursday, September 26, 2019

Oxidized Web Issue

Yay another Oxidized setup issue thread.

CentOs 7, oxidized 0.26.3, oxidized web 0.13.1 , puma 3.11.4, ruby 2.6.1

So I have been struggling with oxidized for a couple of days now. I got it once to work with librenms but could not get the service to work. after several tries i got it working with ruby rvm and an unpriviliged user. The problem I am now running into is that 127.0.0.1:8888 is not showing the webgui and thus the config is not loading in the librenms device config tab.

I checked the listeners and there is only 1 pid listening to 8888 which is the oxidized service.

[oxidized@UGRPLNMS01 oxidized]$ sudo lsof -i -P -n | grep LISTEN <omitted> ruby 2394 oxidized 6u IPv4 2009079 0t0 TCP 127.0.0.1:8888 (LISTEN) 

telnet <ip>:8888 Could not open connection to the host, on port 8888: Connect failed

web: connection refused

palo alto in between: tcp rst server

I already added the port to the linux firewall:

firewall-cmd --zone=public --add-port=8888/tcp --permanentfirewall-cmd --reload 

[oxidized@UGRPLNMS01 oxidized]$ sudo firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: dhcpv6-client http https ssh ports: 8888/tcp 8888/udp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: 

oxidized config:

--- username: ------ password: ------ model: junos interval: 3600 log: "~/.config/oxidized/log" debug: false threads: 30 timeout: 20 retries: 3 prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/ groups: {} rest: 127.0.0.1:8888 input: default: ssh, telnet debug: false ssh: secure: false output: default: file file: directory: /home/oxidized/deviceconfigs source: default: http debug: true http: url: http://ugrplnms01.-----.local/api/v0/oxidized map: name: hostname model: os group: group headers: X-Auth-Token: '--------' csv: file: "~/.config/oxidized/router.db" delimiter: !ruby/regexp /:/ map: name: 0 model: 1 username: 2 password: 3 vars_map: enable: 4 model_map: cisco: ios juniper: junos 

nginx config:

 server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } 

I am probably overlooking something as it has been 5 years since I worked with Linux. Anybody got some pointers?



No comments:

Post a Comment