Package: munin
Version: 2.0.6-3~bpo60+1
I have configured 10 nodes belonging to one group via
/etc/munin/munin-conf.d/group
In the logs, i see
2013/03/16 06:31:21 asked for (group, node.domain.tld, load, month)
2013/03/16 06:31:21 [PERL WARNING] Use of uninitialized value
$cgi_tmp_dir in concatenation (.) or string at
/usr/share/munin/munin-graph line 243, <GEN3> line 1258.
2013/03/16 06:31:21 Starting munin-graph
2013/03/16 06:31:21 [INFO] Looking into drawing
/group/node.domain.tld/load-month.png
2013/03/16 06:31:21 [RRD ERROR] Unable to graph
/group/node.domain.tld/load-month.png : Could not save png to
'/group/node.domain.tld/load-month.png'
2013/03/16 06:31:21 [RRD ERROR] rrdtool 'graph'
'/group/node.domain.tld/load-month.png' \
.... (log of rrdtool options)
2013/03/16 06:31:21 [INFO] Graphed service group;node.domain.tld:load
(0.74 sec for 1 graphs)
2013/03/16 06:31:21 Munin-graph finished (0.74 sec)
2013/03/16 06:31:21 [WARNING] Could not draw graph
"/group/node.domain.tld/load-month.png":
/group/node.domain.tld/load-month.png
2013/03/16 06:31:21 X-Munin-Request: 1257/0
2013/03/16 06:31:21 [PERL WARNING] Use of uninitialized value $epoch
in gmtime at /usr/share/munin/munin-graph line 205, <GEN3> line 1258.
2013/03/16 06:31:21 [PERL WARNING] Use of uninitialized value
$mtime_epoch in modulus (%) at /usr/share/munin/munin-graph line 192,
<GEN3> line 1258.
2013/03/16 06:31:21 [PERL WARNING] Use of uninitialized value
$mtime_epoch in subtraction (-) at /usr/share/munin/munin-graph line
192, <GEN3> line 1258.
2013/03/16 06:31:21 [PERL WARNING] Use of uninitialized value in
concatenation (.) or string at /usr/share/munin/munin-graph line 166,
<GEN3> line 1258.
2013/03/16 06:31:21 Content-Length:
2013/03/16 06:31:21 Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
2013/03/16 06:31:21 Expires: Thu, 01 Jan 1970 02:00:00 GMT
2013/03/16 06:31:21 Request path is
/group/node.domain.tld/load-year.png
The following hack made it work for me (Thanks to Zw from #munin at
irc.oftc.net).
Quote:
--- Log opened Tue Nov 27 12:38:01 2012
12:38 < maharaja> hi.
12:38 < maharaja> i have a problem which i cannot figure out with my
central munin node
...
12:40 < maharaja> i have a group of several servers which i have,
imho, configured identically
...
12:41 < maharaja> e.g.
12:41 < maharaja> [k000054;k000054vsc.ipax.at] address
k000054vsc.ipax.at use_node_name yes
...
12:42 < maharaja> for some hosts (hosts that i added recently) i now
get the following error:
12:42 < maharaja> for munin-graph:
12:42 < maharaja> [RRD ERROR] Unable to graph
/k000054/k000054vsc.ipax.at/cpu-month.png : Could not save png to
'/k000054/k000054vsc.ipax.at/cpu-month.png'
12:43 < maharaja> (when creating static files via a cronjob)
...
12:44 < maharaja> why does it want to write to /k000054/ for some
hosts but not for all?
12:44 < maharaja> (which is of course a invalid path, it should be:
/var/cache/munin/www/k000054)
12:45 < maharaja> i'm running debian squeeze with munin
2.0.6-1~bpo60+1
12:46 < maharaja> do you require any more information from my side or
can you hint me to where to look for an error on my side?
12:46 < Zw> maharaja: are you doing cron or cgi strategy ?
12:47 < maharaja> cron
12:47 < maharaja> when i open the cgi url
12:47 < maharaja> it is working
12:47 < maharaja> and i see the most recent data
12:47 < Zw> maharaja: there is somekind of bug if you try cgi when
munin-graph is running
12:47 < Zw> the $cgi_tmp_dir variable gets empty after a while, i
noted that problem myself.
12:48 < Zw> On line 238 of munin-graph you have my $cgi_tmp_dir =
$config->{htmldir};
12:49 < Zw> change it to my $cgi_tmp_dir = "/var/cache/munin/www" to
temporary fix your issue.
12:49 < maharaja> Zw: ok thanks, i'll try that
12:50 < maharaja> sounds weird to me
12:50 < maharaja> have you reported this issue?
12:50 < Zw> maharaja: not yet, as I discovered the issue yesterday
eventing.
12:50 < Zw> evening.
12:51 < maharaja> oh :) lucky me then
12:51 < Zw> Try it en let me know if it was a fix
12:51 < maharaja> i'll wait a couple of minutes and will let you know
if this fixes the problem
13:15 < maharaja> Zw: looks good
13:15 < maharaja> everything is now working as expected and i got no
such error messages
13:15 < Zw> Ok, now file a bug :)
13:17 < maharaja> me? or you? ;)
13:18 < maharaja> it seems like you know more about munin since i was
unable to find it (and i'm actually only getting started to use munin a
little more than just "apt-get install munin" and let it be)
13:21 < Zw> ok then.
...
--- Log closed Tue Nov 27 19:02:14 2012
I would very much like to see this addressed as i currently have to
manually patch munin upon every upgrade ;)
Thanks,
Raoul
--- munin-graph.orig 2013-03-16 10:39:13.115781135 +0100
+++ munin-graph 2013-03-16 10:39:40.739781246 +0100
@@ -235,7 +235,7 @@
my $scale = shift;
my $params = shift;
- my $cgi_tmp_dir = $config->{htmldir};
+ my $cgi_tmp_dir = "/var/cache/munin/www";
$params = $params ? "?$params" : "";
$params =~ tr/\//_/; # / are forbidden in a filename
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org