this is probably ugly but it got my graphs back:

--- munin-graph.orig    2005-04-03 01:54:11.000000000 +0100
+++ munin-graph 2005-08-23 17:24:14.000000000 +0100
@@ -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,26 +991,30 @@

            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");
        }

        for my $time (keys %times) {
            next unless ($draw{$time});
            my @complete;
+            my $fixtime;
            logger ("Processing $name -> $time") if $DEBUG;

            # Do the header (title, vtitle, size, etc...)
            push @complete, @{&get_header ($node, $config, $domain, $name, 
$service, $time)};
            push @complete, @rrd;

-           push (@complete, "COMMENT:Last update: " . localtime($lastupdate) .  
"\\r");
+            $fixtime = localtime($lastupdate);
+            $fixtime =~ s/\:/\\:/g;
+
+           push (@complete, "COMMENT:Last update\\: " . $fixtime .  "\\r");

            if (time - 300 < $lastupdate)
            {
@@ -1033,6 +1037,7 @@
            {
                next unless ($draw{"sum".$time});
                my @rrd_sum;
+                my $fixtime;
                push @rrd_sum, @{&get_header ($node, $config, $domain, $name, 
$service, $time, 1)};

                if (time - 300 < $lastupdate)
@@ -1040,7 +1045,11 @@
                        push @rrd_sum, 
"--end",(int($lastupdate/$resolutions{$time}))*$resolutions{$time};
                }
                push @rrd_sum, @rrd;
-               push (@rrd_sum, "COMMENT:Last update: " . localtime($lastupdate) .  
"\\r");
+
+                $fixtime = localtime($lastupdate);
+                $fixtime =~ s/\:/\\:/g;
+
+               push (@rrd_sum, "COMMENT:Last update\\: " . $fixtime .  "\\r");

                my $labelled = 0;
                my @defined = ();

--
Thomas Lakofski +44 70 9228 8229
'Reality is that which, when you stop believing in it, doesn't go away' --PKD
gpg: 1024D/81FD4B43  2B72 53DB 8104 2041 BDB4  F053 4AE5 01DF 81FD 4B43


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to