[rrd-users] Re: newbie: MAX values not corresponding over time
John-Paul Delaney
John-Paul.Delaney at wfp.org
Wed Jan 29 13:22:02 MET 2003
Content-Type: text/plain; charset="US-ASCII"
Thanks Stephan... I'm new to perl too so excuse the ugliness. The basic
graphing part of the script is what follows. I also include 3 sample gifs
for week/month/year.
Any futher assistance is greatly appreciated.
regards
/j-p.
# Looping for various interfaces:
$cmd1 = "/usr/local/rrdtool-1.0.40/bin/rrdtool graph $dir";
$cmd2 = ".gif --start ";
$cmd2b = " -u $cap -r -y 100000:2 -v bits/sec -w $gifWidth -h
$gifHeight -t ";
$cmd2c = " DEF:inoctets=/home/mrtg/rras/42_3/";
$cmd3 = ".rrd:input:";
$cmd3b = " CDEF:inbits=inoctets,8,*
DEF:outoctets=/home/mrtg/rras/42_3/";
$cmd4 = ".rrd:output:";
$cmd4b = " CDEF:outbits=outoctets,8,* AREA:inbits#00FF00:\"In ";
$cmd4c = " ($period traffic)\" LINE1:outbits#0000FF:\"Out ";
$cmd4d = " ($period traffic) [generated $today]\"";
if ($period eq "day") {
$periodNum = -86400;
$CF = "AVERAGE";
} elsif ($period eq "week") {
$periodNum = -604800;
$CF = "MAX";
} elsif ($period eq "month") {
$periodNum = -2419200;
$CF = "MAX";
} else {
$periodNum = -29030400;
$CF = "MAX";
}
system($cmd1."/".$i.$period.$cmd2.$periodNum.$cmd2b."'".$sysName."
(".$ifDescr.") ".$ifAlias." ".$AdminStatus."
".$OpStatus."'".$cmd2c.$i.$cmd3.$CF.$cmd3b.$i.$cmd4.$CF.$cmd4b.$CF.$cmd4c.$CF.$cmd4d);
Stephan Harren <sh at abovenet.de>
Sent by: rrd-users-bounce at list.ee.ethz.ch
29/01/2003 11:12
To: "John-Paul Delaney" <John-Paul.Delaney at wfp.org>,
rrd-users at list.ee.ethz.ch
cc:
Subject: [rrd-users] Re: newbie: MAX values not
corresponding over time
Am Mittwoch, 29. Januar 2003 10:49 schrieb John-Paul Delaney:
> Hello List...
>
> Sorry if this has been asked before, I've searched around but didn't
> find/understand any answer that clarified the situation for me.
>
> I'm using directly the 'real world example' from the rrd tutorial but
I'm
> graphing the MAX values instead of the AVERAGE ones.
>
> In the resulting graphs,
>
> the MAX values for the month are higher than those for the week
> (comparing the same time period on both graphs).
> the MAX values for the year are higher than those for the month
> (again comparing the same time period on both graphs).
>
> I expected the MAX values to be the same in the week, month, and year
> graphs - as the MAX value is not an average, and has the same value
> whichever way you look at it (i.e. week,month,or year).
>
> Am I completely misunderstanding the concept, or is it more likely that
my
> own configuration is the problem?
>
> thanks
> /j-p.
Maybe I'm getting you wrong, but most times the MAX over the year is
higher
than the MAX over the month. If you store a datasource with consolidation
MAX, you won't lose any peak, and because of the longer period...
Another point is, that in the 5-minute graph, you have 6 maximum values
that
go into one for the 30-minute graph. This means, that through
consolidation,
you lose the low values in your MAX graph.
Well, if you compare the same period, the really MAXes should be the same,
what if you send the code you use, so we could have a look at it...
Best regards,
Stephan
--
Stephan Harren
Manager Site Operations
MFN-IS
-------------------------------
Phone +49 69 90554 153
Fax +49 69 90554 111
Cell +49 173 7011126
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: image/gif
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: image/gif
-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: image/gif
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list