[rrd-users] Re: Weird #'s from basic rrdgraph
Tobias Oetiker
oetiker at ee.ethz.ch
Sat Mar 17 11:38:48 MET 2001
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
More information about the rrd-users
mailing list