Weathermap - INFOURL and OVERLIBGRAPH path change since upgrade

In the Weathermap plugin when you create a link, choose a graph for INFOURL and OVERLIBGRAPH, the URLs became relative references. I am not sure when this behavior changed, but it was some time around the deprecation of php8.1,

Examples:

Before:
LINK wan-gw1-Comcast
        INFOURL https://librenms.xyz.com:443/graphs/type=port_bits/id=129503/
        OVERLIBGRAPH https://librenms.xyz.com:443/graph.php?height=100&width=512&id=129503&type=port_bits&legend=no
        TARGET ./wan-gw1.xyz.com/port-id129503.rrd:INOCTETS:OUTOCTETS
        NODES wan-gw1 Comcast
        BANDWIDTH 100M

After upgrade:
LINK wan-gw1-wan-gw2
        INFOURL graphs/type=port_bits/id=76111/
        OVERLIBGRAPH graph.php?height=100&width=512&id=76111&type=port_bits&legend=no
        TARGET ./wan-gw1.xyz.com/port-id76111.rrd:INOCTETS:OUTOCTETS
        NODES wan-gw1 wang2
        BANDWIDTH 40000M

The problem is that after the upgrade the relative path results in broken links. I can manually add a “/” to the INFOURL and OVERLIBGRAPH URLs and it resolves the issue.

Example Fix:

        INFOURL /graphs/type=port_bits/id=76111/
        OVERLIBGRAPH /graph.php?height=100&width=512&id=76111&type=port_bits&legend=no

Is there a global option I can add to correct this so that I don’t have to manually edit each link afterwards?

1 Like

Did some digging around in the code and it looks like base_url is not being applied correctly, however, it is set in the configuration.

$ lnms config:get base_url
https://librenms.xyz.com/

Perhaps I’ll look around some more…