[mrtg] Re: 14all & 14all*GraphTotal[] in MRTG's .cfg-file (OS: Win NT 4.0)
Rainer Bawidamann
Rainer.Bawidamann at rz.uni-ulm.de
Mon Oct 30 14:35:53 MET 2000
In article <39F95004.C69B62E4 at icl.fi>,
Pekka.Ruka at icl.fi (Pekka Ruka) writes:
>
> Only problem is, that "14all*GraphTotal[]" in MRTG's .cfg file don't
> make additional line (sum of the two other lines) in graph. For example
> "14all*Logaritmic[_]: Yes" in .cfg-file works fine :)
Was a bug. New version of 14all is online, patch is appended.
Rainer
diff -u -r2.11 -r2.12
--- 14all.cgi 2000/10/13 10:21:18 2.11
+++ 14all.cgi 2000/10/30 13:29:03 2.12
@@ -350,7 +350,7 @@
push @args, "CDEF:pin=$ds0,$maximum0,/,100,*,$factor,/",
"CDEF:pout=$ds1,$maximum1,/,100,*,$factor,/";
- if (yesorno($targets{options}{'14all*graphtotal'}{$log})) {
+ if (yesorno($targets{'14all*graphtotal'}{$log})) {
push @args, "CDEF:total=$ds0,$ds1,+", "LINE1:total#ffa050:Total AVG\\l";
}
# now for the peak graphs / maximum values
@@ -381,7 +381,7 @@
push @args, "CDEF:pmin=$mx0,$maximum0,/,100,*,$factor,/",
"CDEF:pmout=$mx1,$maximum1,/,100,*,$factor,/";
($px0, $px1) = ('pmin', 'pmout');
- if (yesorno($targets{options}{'14all*graphtotal'}{$log})) {
+ if (yesorno($targets{'14all*graphtotal'}{$log})) {
push @args, "CDEF:mtotal=$mx0,$mx1,+", "LINE1:mtotal#ff5050:Total MAX\\l";
}
}
@@ -566,8 +566,10 @@
my $column = 0;
foreach my $tar (@dirs) {
print '<tr>' if $column == 0;
- print $q->td($q->a({href => "$meurl?dir=$tar$cfgstr"},
- "Group $tar")),"\n";
+ (my $link = $tar) =~ s/ /\+/g;
+ chop $tar; # remove / for display (from ensureSL)
+ print $q->td($q->a({href => "$meurl?dir=$link$cfgstr"},
+ $tar)),"\n";
$column++;
if ($column >= $confcolumns) {
$column = 0;
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list