This is a bit weird since I had this working on a test server before building a production server.
Installed LibreNMS + Oxidized on local host. Enabled Oxidized support via the External settings menu, pointing to localhost (http://127.0.0.1:8888)
Generated an API token for the LibreNMS admin user, used that token under the Source configuration settings in Oxidized config per LibreNMS documentation.
When I run Oxidized, it runs and grabs configs, the WebUI for Oxidized is accessible. LibreNMS on the other hand displays “We couldn’t retrieve the device info from Oxidized”
Here’s a screenshot of the Oxidized config file, perhaps I’m overlooking something basic?
Wow sorry sometimes I’m a twit. If it’s any consolation, using your recommended curl gave me the same message, however if I run curl with the port# included, I get the following: https://pastebin.com/0HpnUwwf
Ok so that last one, you’ve used a completely different url - you need to use the exact one you specified in your config. You also need to include ?format=json at the end.
I apologize for the delay, however am I pulling this wrong? Used curl -o to download the specified patch url from the project directory, getting an error that the patch does not apply.
[root@nms01 device]# cd /opt/librenms/
[root@nms01 librenms]# git apply 9d61a231
error: patch failed: html/pages/device/showconfig.inc.php:170
error: html/pages/device/showconfig.inc.php: patch does not apply
[root@nms01 librenms]#
Inserted the code at line 170. Omitted lines 1-4 in your patch as I don’t believe those are are required to be added when manually adding the code. Anyways the error message is gone from the librenms config tab for oxidized, however it’s not displaying the configs. I restarted php/nginx to be safe, but the results are the same. Adding a screenshot of the config file for clarity.
Yes, deleted the old lines, inserted the provided patch code. I can restore the backup config and try again. I’ll update as I could have accidentally removed something.
update: just restored the backup config, and reapplied the patch, issue is persistent.
I’m confused, is that the file you are showing me or the patch? If it’s the file showconfig.inc.php then you’ve added both the lines. The - means the line should be removed and the + means the line should be added. You actually only need to add the > that you see on that line so revert the commit and add just that manually.