Package: munin
Version: 2.0~rc6-3
Severity: grave

Hello,

after upgrading from munin 2.0~rc5-3 to 2.0~rc6-3 the whole graph generation is broken, also if we purge the whole package (also removing /var/lib/munin and /var/cache/munin/www).

My steps to reproduce this issue:
- fresh install of munin
- adding a host to the tree
- enable fastcgi apache module
- set allow from... to the needed hosts
- reload apache

After this, the html page is correct generated, but if I want to see the graphs I get in the apache errorlog:

[warn] FastCGI: (dynamic) server "/usr/lib/cgi-bin/munin-cgi-graph" started (pid 2341) FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value in concatenation (.) or string at /usr/lib/cgi-bin/munin-cgi-graph line 316., referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value $epoch in gmtime at /usr/lib/cgi-bin/munin-cgi-graph line 283., referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value $mtime_epoch in modulus (%) at /usr/lib/cgi-bin/munin-cgi-graph line 270., referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value $mtime_epoch in subtraction (-) at /usr/lib/cgi-bin/munin-cgi-graph line 270., referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value in concatenation (.) or string at /usr/lib/cgi-bin/munin-cgi-graph line 237., referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: [Wed May 30 10:10:55 2012] munin-cgi-graph: [FATAL] Could not open image file "/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_latency-day.png" for reading: No such file or directory, referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: [Wed May 30 10:10:55 2012] munin-cgi-graph: [FATAL] Could not open image file "/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_latency-day.png" for reading: No such file or directory, referer: http://munin/munin/ameusgmbh.intern/gateway.ameusgmbh.intern/index.html FastCGI: (dynamic) server "/usr/lib/cgi-bin/munin-cgi-graph" (pid 2341) terminated by calling exit with status '2'


The /var/log/munin/munin-cgi-html.log shows:

2012/05/30 10:21:10 Opened log file
2012/05/30 10:21:10 Request path is /ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png 2012/05/30 10:21:10 asked for (ameusgmbh.intern, gateway.ameusgmbh.intern, diskstats_throughput, week)
2012/05/30 10:21:10 Starting munin-graph
2012/05/30 10:21:10 [INFO] Looking into drawing /munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png 2012/05/30 10:21:10 [RRD ERROR] Unable to graph /munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png : Could not save png to '/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png' 2012/05/30 10:21:10 [RRD ERROR] rrdtool 'graph' '/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png' \
        '--title' \
        'Disk throughput per device - by week' \
        '--start' \
        '-12000m' \
        '--base' \
        '1024' \
        '--vertical-label' \
        'Bytes/second read (-) / write (+)' \
        '--slope-mode' \
        '--height' \
        '175' \
        '--width' \
        '400' \
        '--imgformat' \
        'PNG' \
        '--font' \
'DEFAULT:0:DejaVuSans,DejaVu Sans,DejaVu LGC Sans,Bitstream Vera Sans' \
        '--font' \
'LEGEND:7:DejaVuSansMono,DejaVu Sans Mono,DejaVu LGC Sans Mono,Bitstream Vera Sans Mono,monospace' \
        '--color' \
        'BACK#F0F0F0' \
        '--color' \
        'FRAME#F0F0F0' \
        '--color' \
        'CANVAS#FFFFFF' \
        '--color' \
        'FONT#666666' \
        '--color' \
        'AXIS#CFD6F8' \
        '--color' \
        'ARROW#CFD6F8' \
        '--border' \
        '0' \
        '-W' \
        'Munin 2.0-rc6' \
        'HRULE:2#FF8000' \

'DEF:a3644073c3ef357f=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_wrbytes-g.rrd:42:MAX' \

'DEF:i3644073c3ef357f=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_wrbytes-g.rrd:42:MIN' \

'DEF:g3644073c3ef357f=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_wrbytes-g.rrd:42:AVERAGE' \

'DEF:a81a87379b6adc74=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_rdbytes-g.rrd:42:MAX' \

'DEF:i81a87379b6adc74=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_rdbytes-g.rrd:42:MIN' \

'DEF:g81a87379b6adc74=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_swap_1_rdbytes-g.rrd:42:AVERAGE' \
        'HRULE:2#0066B3' \

'DEF:ad3350844952886e=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_wrbytes-g.rrd:42:MAX' \

'DEF:id3350844952886e=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_wrbytes-g.rrd:42:MIN' \

'DEF:gd3350844952886e=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_wrbytes-g.rrd:42:AVERAGE' \

'DEF:ad493072b2eab6e1=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_rdbytes-g.rrd:42:MAX' \

'DEF:id493072b2eab6e1=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_rdbytes-g.rrd:42:MIN' \

'DEF:gd493072b2eab6e1=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-gateway_root_rdbytes-g.rrd:42:AVERAGE' \
        'HRULE:2#00CC00' \

'DEF:asda_wrbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_wrbytes-g.rrd:42:MAX' \

'DEF:isda_wrbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_wrbytes-g.rrd:42:MIN' \

'DEF:gsda_wrbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_wrbytes-g.rrd:42:AVERAGE' \

'DEF:asda_rdbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_rdbytes-g.rrd:42:MAX' \

'DEF:isda_rdbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_rdbytes-g.rrd:42:MIN' \

'DEF:gsda_rdbytes=/var/lib/munin/ameusgmbh.intern/gateway.ameusgmbh.intern-diskstats_throughput-sda_rdbytes-g.rrd:42:AVERAGE' \
        'CDEF:csda_rdbytes=gsda_rdbytes' \
        'CDEF:csda_wrbytes=gsda_wrbytes' \
        'COMMENT:       ' \
        'COMMENT:Cur (-/+)' \
        'COMMENT:Min (-/+)' \
        'COMMENT:Avg (-/+)' \
        'COMMENT:Max (-/+) \j' \
        'LINE1:gsda_wrbytes#00CC00:sda     ' \
        'GPRINT:csda_rdbytes:LAST:%7.2lf%s/\g' \
        'GPRINT:csda_wrbytes:LAST:%7.2lf%s' \
        'GPRINT:isda_rdbytes:MIN:%7.2lf%s/\g' \
        'GPRINT:isda_wrbytes:MIN:%7.2lf%s' \
        'GPRINT:gsda_rdbytes:AVERAGE:%7.2lf%s/\g' \
        'GPRINT:gsda_wrbytes:AVERAGE:%7.2lf%s' \
        'GPRINT:asda_rdbytes:MAX:%7.2lf%s/\g' \
        'GPRINT:asda_wrbytes:MAX:%7.2lf%s\j' \
        'CDEF:cd493072b2eab6e1=gd493072b2eab6e1' \
        'CDEF:cd3350844952886e=gd3350844952886e' \
        'LINE1:gd3350844952886e#0066B3:root    ' \
        'GPRINT:cd493072b2eab6e1:LAST:%7.2lf%s/\g' \
        'GPRINT:cd3350844952886e:LAST:%7.2lf%s' \
        'GPRINT:id493072b2eab6e1:MIN:%7.2lf%s/\g' \
        'GPRINT:id3350844952886e:MIN:%7.2lf%s' \
        'GPRINT:gd493072b2eab6e1:AVERAGE:%7.2lf%s/\g' \
        'GPRINT:gd3350844952886e:AVERAGE:%7.2lf%s' \
        'GPRINT:ad493072b2eab6e1:MAX:%7.2lf%s/\g' \
        'GPRINT:ad3350844952886e:MAX:%7.2lf%s\j' \
        'CDEF:c81a87379b6adc74=g81a87379b6adc74' \
        'CDEF:c3644073c3ef357f=g3644073c3ef357f' \
        'LINE1:g3644073c3ef357f#FF8000:swap_1  ' \
        'GPRINT:c81a87379b6adc74:LAST:%7.2lf%s/\g' \
        'GPRINT:c3644073c3ef357f:LAST:%7.2lf%s' \
        'GPRINT:i81a87379b6adc74:MIN:%7.2lf%s/\g' \
        'GPRINT:i3644073c3ef357f:MIN:%7.2lf%s' \
        'GPRINT:g81a87379b6adc74:AVERAGE:%7.2lf%s/\g' \
        'GPRINT:g3644073c3ef357f:AVERAGE:%7.2lf%s' \
        'GPRINT:a81a87379b6adc74:MAX:%7.2lf%s/\g' \
        'GPRINT:a3644073c3ef357f:MAX:%7.2lf%s\j' \
        'CDEF:re_zero=gsda_rdbytes,UN,0,0,IF' \
        'CDEF:ngsda_rdbytes=gsda_rdbytes,-1,*' \
        'LINE1:ngsda_rdbytes#00CC00' \
        'CDEF:ngd493072b2eab6e1=gd493072b2eab6e1,-1,*' \
        'LINE1:ngd493072b2eab6e1#0066B3' \
        'CDEF:ng81a87379b6adc74=g81a87379b6adc74,-1,*' \
        'LINE1:ng81a87379b6adc74#FF8000' \
        'LINE1:re_zero#000000' \
        'COMMENT:Last update\: Wed May 30 10\:20\:08 2012\r' \
        '--end' \
        '1338366000'
2012/05/30 10:21:10 [INFO] Graphed service ameusgmbh.intern;gateway.ameusgmbh.intern:diskstats_throughput (0.03 sec for 1 graphs)
2012/05/30 10:21:10 Munin-graph finished (0.03 sec)
2012/05/30 10:21:10 [WARNING] Could not draw graph "/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png": /munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png 2012/05/30 10:21:10 [FATAL] Could not open image file "/munin-cgi-graph/ameusgmbh.intern/gateway.ameusgmbh.intern/diskstats_throughput-week.png" for reading: No such file or directory


A temporary workaround is:
# ln -s /var/cache/munin/www/ /munin-cgi-graph
# chown munin:www-data -R /var/cache/munin/www && chmod g+w -R /var/cache/munin/www

With both the graphs are working fine, just the following warning is a bit annoying in the errorlog on requesting a graph: FastCGI: server "/usr/lib/cgi-bin/munin-cgi-graph" stderr: Use of uninitialized value in concatenation (.) or string at /usr/lib/cgi-bin/munin-cgi-graph line 316


Cheers



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to