Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 09:39:18 +0200
From:      martin hudec <corwin@aeternal.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problems with munin
Message-ID:  <20050801073918.GA86287@amber.aeternal.net>
In-Reply-To: <003501c595eb$a8c4cc50$0301a8c0@danielle>
References:  <003501c595eb$a8c4cc50$0301a8c0@danielle>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801073918.GA86287>