From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 07:35:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1BDE16A41F for ; Mon, 1 Aug 2005 07:35:35 +0000 (GMT) (envelope-from corwin@amber.aeternal.net) Received: from amber.aeternal.net (amber.in.markiza.sk [62.168.76.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05E3A43D4C for ; Mon, 1 Aug 2005 07:35:34 +0000 (GMT) (envelope-from corwin@amber.aeternal.net) Received: from localhost (localhost.aeternal.net [127.0.0.1]) by amber.aeternal.net (Postfix) with ESMTP id 9AF7FB84E for ; Mon, 1 Aug 2005 09:39:22 +0200 (CEST) Received: from amber.aeternal.net ([127.0.0.1]) by localhost (amber.aeternal.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86720-07 for ; Mon, 1 Aug 2005 09:39:20 +0200 (CEST) Received: from amber.aeternal.net (localhost.aeternal.net [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by amber.aeternal.net (Postfix) with ESMTP id 174B7B853 for ; Mon, 1 Aug 2005 09:39:20 +0200 (CEST) Received: (from corwin@localhost) by amber.aeternal.net (8.13.3/8.13.1/Submit) id j717dJPL088470 for freebsd-questions@freebsd.org; Mon, 1 Aug 2005 09:39:19 +0200 (CEST) (envelope-from corwin) Date: Mon, 1 Aug 2005 09:39:18 +0200 From: martin hudec To: freebsd-questions@freebsd.org Message-ID: <20050801073918.GA86287@amber.aeternal.net> References: <003501c595eb$a8c4cc50$0301a8c0@danielle> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R3G7APHDIzY6R/pk" Content-Disposition: inline In-Reply-To: <003501c595eb$a8c4cc50$0301a8c0@danielle> X-Copyright: (C) 2005 Martin Hudec X-Operating-System: FreeBSD amber.aeternal.net 5.4-STABLE i386 X-PGP-Key: http://www.aeternal.net/corwin_aeternal.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at aeternal.net Subject: Re: Problems with munin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martin hudec List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 07:35:35 -0000 --R3G7APHDIzY6R/pk Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =2E2 but i have a problem when i run munin.I have in log "munin-graph.log" = that : >=20 > Jul 31 18:13:18 - Unable to graph /usr/local/var/munin/linux-win.org/gw-b= sd.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-b= sd.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-b= sd.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-b= sd.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-b= sd.linux-win.org-vmstat-sleep-g.rrd: Garbage ':' after command: >=20 > I usr rrdtool-1.2.11 and i don't understand why i have this problem.Anyon= e 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 --=20 martin hudec * 421 907 303 393 * corwin@aeternal.net * http://www.aeternal.net "Nothing travels faster than the speed of light with the possible=20 exception of bad news, which obeys its own special laws." Douglas Adams, "The Hitchhiker's Guide to the Galaxy" --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="munin-graph.diff" Content-Transfer-Encoding: quoted-printable --- 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 =3D=3D 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++; } =20 @@ -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 ($no= de->{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 @@ =20 push (@rrd, "CDEF:dpostotal=3Dipostotal,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 ($no= de->{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 ($nod= e->{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 ($nod= e->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j"); } =20 @@ -1010,7 +1010,8 @@ push @complete, @{&get_header ($node, $config, $domain, $name, $servi= ce, $time)}; push @complete, @rrd; =20 - push (@complete, "COMMENT:Last update: " . localtime($lastupdate) . = "\\r"); + my $loctime =3D localtime($lastupdate); + push (@complete, "COMMENT:Last update\\: " . escape($loctime) . "\\r= "); =20 if (time - 300 < $lastupdate) { @@ -1040,7 +1041,8 @@ push @rrd_sum, "--end",(int($lastupdate/$resolutions{$time}))*$resoluti= ons{$time}; } push @rrd_sum, @rrd; - push (@rrd_sum, "COMMENT:Last update: " . localtime($lastupdate) . "\\r= "); + my $loctime =3D localtime($lastupdate); + push (@rrd_sum, "COMMENT:Last update\\: " . escape($loctime) . "\\r"); =20 my $labelled =3D 0; my @defined =3D (); --82I3+IH0IqGh5yIs-- --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC7dGmZYEZIv+rgggRAgi1AJ41ps+hm8qMFCIELBXetqc1zQWAhwCffKzu P40cUyHtJcdSZKTEOYr31iI= =Li3a -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk--