[rrd-users] Re: Weird #'s from basic rrdgraph
Clarence
clhart at home.com
Mon Mar 19 01:13:00 MET 2001
Question..
But I'm not graphing the "MAX" I'm graphing the "AVERAGE".
I thought if I had a dataset like this:
3 , 5 , 3 , 3 , 3 , 3 , 3 , 3
, 3 , 3
The graph should look like this:
#
#
# # # # # # # # # # #
# # # # # # # # # # #
# # # # # # # # # # #
and the GPRINT stuff should display this:
MAX = 5 , MIN=3
Whats happening to me is the second datapoint (5) is getting decreased to ,
lets say 4. Now the graph looks like this:
#
# # # # # # # # # # #
# # # # # # # # # # #
# # # # # # # # # # #
and the GPRINT stuff says:
MAX=4 , MIN=3
***** But the rrdfetch for the same time frame display the coorect values:
3 , 5 , 3 , 3 , 3 , 3 , 3 , 3
, 3 , 3
Thanks!!
I hope you use fixed width fonts!
I just dont understand why if I printed 140 pages in one hour and cant
disply that.
Or
Why cant I display what rrdfetch returns. rrdtool seems to know that the
actual datapoint
for the day in question was 140. Why not graph it?
Clarence Hart
----- Original Message -----
From: "Tobias Oetiker" <oetiker at ee.ethz.ch>
To: "Clarence Hart" <rti1clh at ismd.ups.com>
Cc: <rrd-users at list.ee.ethz.ch>
Sent: Saturday, March 17, 2001 5:38 AM
Subject: [rrd-users] Re: Weird #'s from basic rrdgraph
>
> Yesterday Clarence Hart wrote:
>
> |
> |
> | Hey all,
> |
> | I have a quick question. Heres the senerio:
> | Note: Im graphing how many pages printed per/half hour from HP
> | printers.
> |
> | I create an rrd (filename 1.rrd).
> | I use perl's " use RRDs; " command to a create the graph.
> |
> |
> |
> | Why do I get different values when I make my start and end
times
> | over aprox 13days?
> | -> If I choose to graph 5 days the max value would be 140
pages.
> | -> If I choose to graph 20 days the max value would change to
~70
> | pages.
> |
> | Why does this happen?
>
> if you are graphing averages and print the MAX of these averages,
> then obviously the averages will even out the lower a resolution
> you choose and the max will go down accordingly
>
> tobi
> |
> |
> | ---------------Heres my create and graph
script.------------------
> |
> | $time equals the first time in the file.
> | RRDs::create("/tmp/1.rrd", "--start", "$time-1", "--step",
"1800",
> | "DS:value:COUNTER:2100:U:U",
> |
"RRA:AVERAGE:0.5:1:35040","RRA:MAX:0.5:1:35040","RRA:MIN:0.5:1:35040");
> |
> | ----------------Heres how I create the graph-----------------------
> |
> | @options=("-l 0","-s $starttime","-e $endtime",
> | "-v pages per half hour",
> | "-cCANVAS#F5FFFA","-cGRID#D2B48C",
> | "-h $height","-w $width",
> | "-u 25","-aGIF",
> | "-t $title $currenttime");
> | @DEF=();
> | @PLOT=();
> | @LEGEND=();
> |
> | $newstr="DEF:${i}A=$foobar:value:AVERAGE";
> | push(@DEF,$newstr,
> | "CDEF:${i}${oida}=${i}A,1800,*",
> | "LINE2:${i}${oida}$colors{$i}:$oida \: ","COMMENT: \t ",
> | "COMMENT: $printerdevices{$databasename} - AVG",
> | "GPRINT:${i}${oida}:AVERAGE:%4.0lf",
> | "COMMENT:MAX",
> | "GPRINT:${i}${oida}:MAX:%4.0lf",
> | "COMMENT:MIN",
> | "GPRINT:${i}${oida}:MIN:%4.0lf",
> | "COMMENT:LAST",
> | "GPRINT:${i}${oida}:LAST:%4.0lf\\n");
> |
> | push(@LEGEND,
> | "HRULE:$FIXED#FF0590:Base Line $FIXEDLABEL pages",
> | "HRULE:-$FIXED#FF0590:",
> | "HRULE:0#000000:");
> |
> | $fileOutFinal="/tmp/file.gif";
> | RRDs::graph(( -w $fileOutFinal)? $fileOutFinal : $fileOutFinal
,
> | @options,
> | @DEF, at PLOT, at LEGEND);
> |
> | ------------------------------------------------------------------
> |
> |
> | Thanks
> |
> |
> | Clarence Hart
> | UPS
> | Office: 410-560-4182
> | Fax: 410-560-4329
> | chart at ups.com
> |
> |
> | --
> | 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
> |
> |
>
> --
> ______ __ _
> /_ __/_ / / (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
> / // _ \/ _ \/ / TEL: +41(0)1-6325286 FAX:...1517 ICQ: 10419518
> /_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker
>
>
> --
> 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
>
--
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