Hello, On Sun, Jul 31, 2005 at 06:19:42PM +0200 or thereabouts, cell wrote: > Hello , i'm on freebsd 5.4 and i use munin-main-1.2.2 and munin-node-1.2.2 > but i have a problem when i run munin.I have in log "munin-graph.log" that : > > Jul 31 18:13:18 - Unable to graph > /usr/local/var/munin/linux-win.org/gw-bsd.linux-win.org-vmstat-sleep-g.rrd: > Garbage ':' after command: > Jul 31 18:13:18 - Unable to graph > /usr/local/var/munin/linux-win.org/gw-bsd.linux-win.org-vmstat-sleep-g.rrd: > Garbage ':' after command: > COMMENT: Cur: > Jul 31 18:13:18 - Unable to graph > /usr/local/var/munin/linux-win.org/gw-bsd.linux-win.org-vmstat-sleep-g.rrd: > Garbage ':' after command: > COMMENT: Cur: > Jul 31 18:13:18 - Unable to graph > /usr/local/var/munin/linux-win.org/gw-bsd.linux-win.org-vmstat-sleep-g.rrd: > Garbage ':' after command: > COMMENT: Cur: > Jul 31 18:13:18 - Unable to graph > /usr/local/var/munin/linux-win.org/gw-bsd.linux-win.org-vmstat-sleep-g.rrd: > Garbage ':' after command: > > I usr rrdtool-1.2.11 and i don't understand why i have this problem.Anyone > have an idea ?
That is problem with munin which can be patched with attached patch. It seems to have problems with ":" characters. I hope that in 1.2.3 version it will be fixed, in meanwhile you can patch it for yourself. cheers, Martin -- martin hudec * 421 907 303 393 * [EMAIL PROTECTED] * http://www.aeternal.net "Nothing travels faster than the speed of light with the possible exception of bad news, which obeys its own special laws." Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
--- munin-graph.orig Thu Jul 28 12:10:22 2005 +++ munin-graph Thu Jul 28 12:27:03 2005 @@ -848,10 +848,10 @@ elsif ($global_headers == 1) { push (@rrd, "COMMENT:" . (" " x $max_field_len)); - push (@rrd, "COMMENT: Cur:"); - push (@rrd, "COMMENT:Min:"); - push (@rrd, "COMMENT:Avg:"); - push (@rrd, "COMMENT:Max: \\j"); + push (@rrd, "COMMENT: Cur\\:"); + push (@rrd, "COMMENT:Min\\:"); + push (@rrd, "COMMENT:Avg\\:"); + push (@rrd, "COMMENT:Max\\: \\j"); $global_headers++; } @@ -924,13 +924,13 @@ } else { - push (@rrd, "COMMENT: Cur:") unless $global_headers; + push (@rrd, "COMMENT: Cur\\:") unless $global_headers; push (@rrd, "GPRINT:c$rrdname:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, "yes")?"%s":"") . ""); - push (@rrd, "COMMENT: Min:") unless $global_headers; + push (@rrd, "COMMENT: Min\\:") unless $global_headers; push (@rrd, "GPRINT:i$rrdname:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); - push (@rrd, "COMMENT: Avg:") unless $global_headers; + push (@rrd, "COMMENT: Avg\\:") unless $global_headers; push (@rrd, "GPRINT:g$rrdname:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); - push (@rrd, "COMMENT: Max:") unless $global_headers; + push (@rrd, "COMMENT: Max\\:") unless $global_headers; push (@rrd, "GPRINT:a$rrdname:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j"); push (@{$total_pos{'min'}}, "i$rrdname"); push (@{$total_pos{'avg'}}, "g$rrdname"); @@ -991,13 +991,13 @@ push (@rrd, "CDEF:dpostotal=ipostotal,UN,ipostotal,UNKN,IF"); push (@rrd, "LINE1:dpostotal#000000:" . $node->{client}->{$service}->{graph_total} . (" " x ($max_field_len - length ($node->{client}->{$service}->{graph_total}) + 1))); - push (@rrd, "COMMENT: Cur:") unless $global_headers; + push (@rrd, "COMMENT: Cur\\:") unless $global_headers; push (@rrd, "GPRINT:gpostotal:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); - push (@rrd, "COMMENT: Min:") unless $global_headers; + push (@rrd, "COMMENT: Min\\:") unless $global_headers; push (@rrd, "GPRINT:ipostotal:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); - push (@rrd, "COMMENT: Avg:") unless $global_headers; + push (@rrd, "COMMENT: Avg\\:") unless $global_headers; push (@rrd, "GPRINT:gpostotal:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . ""); - push (@rrd, "COMMENT: Max:") unless $global_headers; + push (@rrd, "COMMENT: Max\\:") unless $global_headers; push (@rrd, "GPRINT:apostotal:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j"); } @@ -1010,7 +1010,8 @@ push @complete, @{&get_header ($node, $config, $domain, $name, $service, $time)}; push @complete, @rrd; - push (@complete, "COMMENT:Last update: " . localtime($lastupdate) . "\\r"); + my $loctime = localtime($lastupdate); + push (@complete, "COMMENT:Last update\\: " . escape($loctime) . "\\r"); if (time - 300 < $lastupdate) { @@ -1040,7 +1041,8 @@ push @rrd_sum, "--end",(int($lastupdate/$resolutions{$time}))*$resolutions{$time}; } push @rrd_sum, @rrd; - push (@rrd_sum, "COMMENT:Last update: " . localtime($lastupdate) . "\\r"); + my $loctime = localtime($lastupdate); + push (@rrd_sum, "COMMENT:Last update\\: " . escape($loctime) . "\\r"); my $labelled = 0; my @defined = ();
pgpSPopQwhYQG.pgp
Description: PGP signature