Dashboard Munin Graph Links

I’ve found a bit of an annoyance and was hoping someone could point me in the right direction of a resolution.

When creating a dashboard and adding a graph widget for a munin graph, everything appears to work correctly. Until you click on that graph. Then I get a “Error You have insufficient permissions to view this page” message, even though I’m an admin and can navigate to the same said munin graph manually.

I’ve tracked what I believe the issue is, to the url the widget uses. I’m getting the below (with my specific fqdn replaced)

Munin Widget’s link, which does not work:

Which differs from the link that works when navigating manually:

What I can’t figure out is if this is a .htaccess issue, or if there’s some code somewhere that needs tweaking.

Steps to reproduce:

  1. Create a munin graph via the Unix Agent
  2. Create a widget that references the graph
  3. Click on it

validate.php output:
[email protected]:/opt/librenms# ./validate.php

Component Version
LibreNMS 1.37-110-ge814cd8
DB Schema 247
PHP 7.0.28-0ubuntu0.16.04.1
MySQL 5.7.21-0ubuntu0.16.04.1
RRDTool 1.5.5


[OK] Composer Version: 1.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Thanks in advance!!

Update: I figured out how to work around this issue by utilizing the external image widget.

The new release with auto width and height helped quite a bit. Along with my discovery that if I change the from=value in the image URL to a negative number, and remove the to=value I can dynamically specify how far back to graph. Then the Target URL: allows me to set up correct navigation.

It’s a bit of a hack, but I thought it might help someone else out there. Below is a non-functional example of my External Images widget settings:

Image URL:
https://nms.example.com/graph.php?type=munin_graph&device=83&plugin=custom-resources&from=-1209600&[email protected][email protected]&[email protected][email protected]&absolute=1&legend=yes

Target URL: