Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427906 - net-analyzer/munin-2.0.2-r2 wrong reference path in html files generated by cron job
Summary: net-analyzer/munin-2.0.2-r2 wrong reference path in html files generated by c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL: http://dev.gentoo.org/~jlec/paste/mun...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 16:53 UTC by Justin Lecher (RETIRED)
Modified: 2012-08-06 14:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2012-07-24 16:53:31 UTC
Still wrong reference with cron.

Categories -> d/w ... -> no image

clicking the image redirects to a redered one.

I will try to attach the munin output or place it on my dev space

@diego:
somehow your munin shows the right behaviour
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-07-24 16:56:25 UTC
Here the tarball
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-24 16:57:49 UTC
My munin is setting it explicitly. Alas seems like I missed one bit of it.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-24 23:52:32 UTC
Okay I know why — the problem is that by default munin is using ../.. to link to the graphs — but what happens is that the page is top-level, so then it stops working correctly.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-25 00:42:55 UTC
Okay so this is actually _broken_ when I fixed the automatic URLs for the non-cgi version. The problem is that when using cgi version, all the paths are absolute, but when using the cron version they are relative — but cimg* URLs are only generated once (on the host page) instead of every time... and the function that takes care of it doesn't seem to work correctly.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-25 02:43:02 UTC
Fixed it locally, will push it in a moment as part of 2.0.3.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2012-07-25 06:22:26 UTC
Oh, it is only for the day overview. w, m, y are fine.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-25 15:22:53 UTC
Justin can you verify this with 2.0.3 for sure? Send me a link if you can — mostly because on mine now it works for all of them, and I thought I did take care of it all already...
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2012-07-25 18:27:31 UTC
I removed munin completely and installed version 2.0.3. Here is the output with vanilla munin.conf. USE="-cgi ipv6 ssl"

http://dev.gentoo.org/~jlec/paste/munin-2.0.3-jlec.tar.xz
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-06 14:53:33 UTC
Hopefully fixed in 2.0.4-r1.