LibreNMS integration with Oxidized

I am having an interesting issue with my librenms integration with oxidized. I am deploying LibreNMS and oxidized in a single docker-compose.yml file.

I am using an compose that is similar to the one referenced here: docker/examples/compose at master · librenms/docker · GitHub

The intergration between oxidized and nms seems to work, but I am having problems accessing the UI.

When restarting the container and going to “Tools → Oxidized” the UI errors out with a 500 error. I have been trying to check the logs, but I can not get any information other that it was a 500 error.

2024-10-29T10:25:14.928581+02:00 nms.example.com librenms[32945]: 172.18.0.10 - - [29/Oct/2024:10:25:14 +0200] "GET /oxidized HTTP/1.1" 500 6818 "https://nms.example.com/devices" "Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0"
2024-10-29T10:25:14.928581+02:00 nms.example.com librenms_traefik[32945]: 192.168.1.70 - - [29/Oct/2024:08:25:14 +0000] "GET /oxidized HTTP/2.0" 500 6805 "-" "-" 332 "librenms@docker" "http://172.18.0.5:8000" 60ms

After some time this error goes away and I can access the /oxidized page, but when I try to reload the nodes or look at the configuration it errors out again and I am not able to view the config. After restarting the cycle repeats.

2024-10-29T10:28:37.869708+02:00 nms.example.com librenms[32945]: 172.18.0.10 - - [29/Oct/2024:10:28:37 +0200] "GET /device/47/tab=showconfig/ HTTP/1.1" 500 5132 "https://nms.example.com/oxidized" "Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0"
2024-10-29T10:28:37.869708+02:00 nms.example.com librenms_traefik[32945]: 192.168.1.70 - - [29/Oct/2024:08:28:37 +0000] "GET /device/47/tab=showconfig/ HTTP/2.0" 500 5119 "-" "-" 422 "librenms@docker" "http://172.18.0.5:8000" 185ms

Well the first issue is specified here and will be fixed: LibreNMS and Oxidized Error page

Regarding the second issue that is more serious. It seems to be an docker DNS issue.

The logs show that it cannot get response from http://oxidized:8888, but the ping from inside the container works. It seems to be that it cannot find oxidized, but will find oxidized.librenms-network. So I changed the URL to http://oxidizied.librenms-network:8888 and it works.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.