--- Makefile.config 2005-04-15 22:29:18.000000000 +0200 +++ Makefile.config 2005-09-26 17:26:21.000000000 +0200 @@ -7,10 +7,10 @@ # # the base of the Munin installation. # -PREFIX = $(DESTDIR)/opt/munin +PREFIX = $(DESTDIR)/usr # Where Munin keeps its configurations (server.conf, client.conf, ++) -CONFDIR = $(DESTDIR)/etc/opt/munin +CONFDIR = $(DESTDIR)/etc/munin # Server only - where to put munin-cron BINDIR = $(PREFIX)/bin @@ -19,20 +19,20 @@ BINDIR = $(PREFIX)/bin SBINDIR = $(PREFIX)/sbin # Where to put text and html documentation -DOCDIR = $(PREFIX)/doc +DOCDIR = $(PREFIX)/share/doc # Where to put man pages -MANDIR = $(PREFIX)/man +MANDIR = $(PREFIX)/share/man # Where to put internal binaries and plugin repository LIBDIR = $(PREFIX)/lib # Server only - Output directory -HTMLDIR = $(PREFIX)/var/www +HTMLDIR = $(PREFIX)/var/www/localhost/htdocs/munin CGIDIR = $(HTMLDIR)/cgi # Client only - Where to put RRD files and other intenal data -DBDIR = $(DESTDIR)/var/opt/munin +DBDIR = $(DESTDIR)/var/lib/munin # Client only - Where plugins should put their states. Must be writable by # group "munin", and should be preserved between reboots @@ -72,10 +72,10 @@ PLUGINUSER = nobody # Which command to use to check if the USER and GROUP to run Munin as, exists. -GETENT = $(shell which getent || which true 2>/dev/null) -CHECKUSER = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2")) -CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2")) - -CHOWN = chown -CHMOD = chmod -CHGRP = chgrp +# Gentoo: Ignore, since user creating is taking place later +CHECKUSER:= true +CHECKGROUP:= true +CHOWN := echo Not done: chown +CHMOD := echo Not done: chmod +CHGRP := echo Not done: chgrp + --- server/munin-graph.in 2005-04-15 22:31:22.000000000 +0200 +++ server/munin-graph.in 2005-09-27 18:14:03.000000000 +0200 @@ -649,10 +649,10 @@ sub process_node { 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++; } @@ -725,13 +725,13 @@ sub process_node { } 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"); @@ -792,13 +792,13 @@ sub process_node { 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"); } @@ -810,9 +810,9 @@ sub process_node { # Do the header (title, vtitle, size, etc...) push @complete, @{&get_header ($node, $config, $domain, $name, $service, $time)}; push @complete, @rrd; + my $loctime = localtime($lastupdate); + push (@complete, "COMMENT:Last update\\: " . escape($loctime) . "\\r"); - push (@complete, "COMMENT:Last update: " . localtime($lastupdate) . "\\r"); - if (time - 300 < $lastupdate) { push @complete, "--end",(int($lastupdate/$resolutions{$time}))*$resolutions{$time}; @@ -841,7 +841,8 @@ sub process_node { 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 = ();