[rrd-users] step wrong in graph?

William Yardley rrd-users at veggiechinese.net
Mon May 8 20:46:15 MEST 2006


I've been having a problem with some data sources being graphed hourly
rather than every 10 minutes. I can provide more detailed info (sample
data, rrdtool info output, or whatever) if it would be helpful - just
let me know what you want to see.

Here's one with the problem... notice that the 3 average values seem to
show one combined point per hour, rather than every 10 minutes:
http://veggiechinese.net/example2.png

compared to my original graph w/ 2 data sources:
http://veggiechinese.net/example3.png

If I change the cfunc to "max" (from nothing) in the GRAPH statement for
the data sources that are average, it seems to graph as expected (though
that doesn't seem to be necessary for the rrd with two data sources,
which is setup the same way).

I'm creating this with RRDTool::OO, but printed the actual commands
being issued below. Am I creating this wrong? Should I just use "MAX" as
the cfunc in the graph, since I'm already doing averaging for the
archive points?

Sorry about the weird quoting...

Created like this:
rrdtool 'create' '/usr/local/data/william/rrds/p304-a.rrd' '--start'
'1145299559' '--step' '600' 'DS:Average1:GAUGE:1200:U:U'
'DS:Maximum1:GAUGE:1200:U:U' 'DS:Average2:GAUGE:1200:U:U'
'DS:Maximum2:GAUGE:1200:U:U' 'DS:Avec:GAUGE:1200:U:U'
'RRA:MAX:0.5:1:4320' 'RRA:AVERAGE:0.5:6:4320' 'RRA:AVERAGE:0.5:144:360'

Graphed like this:
rrdtool 'graph' '/home/william/public_html/p304-a-2d.png' '--upper-limit'
'30' '--lower-limit' '0' '--vertical-label' 'Amps' '--title'
'p304-a (2 days)' '--start' '1146940853'
'DEF:2dmaxc=/usr/local/data/william/rrds/p304-a.rrd:Avec:AVERAGE'
'AREA:2dmaxc#7ABDFF:Combined Ave\:\g' 'VDEF:average_comb=2dmaxc,AVERAGE'
'GPRINT:average_comb:%5.2lf%s\g' 'COMMENT:                   '
'LINE0.65:18#FF0000' 'LINE1.15:26#FF0000'
'DEF:2dmax1=/usr/local/data/william/rrds/p304-a.rrd:Maximum1:MAX'
'LINE1:2dmax1#003366:Max1\:\g' 'VDEF:max_summ1=2dmax1,MAXIMUM'
'GPRINT:max_summ1:%5.2lf%s\g' 'COMMENT:    '
'DEF:2dave1=/usr/local/data/william/rrds/p304-a.rrd:Average1:AVERAGE'
'LINE1:2dave1#FF99FF:Ave1\:\g' 'VDEF:average_summ1=2dave1,AVERAGE'
'GPRINT:average_summ1:%5.2lf%s\n' 'COMMENT:  '
'DEF:2dmax2=/usr/local/data/william/rrds/p304-a.rrd:Maximum2:MAX'
'LINE1:2dmax2#336600:Max2\:\g' 'VDEF:max_summ2=2dmax2,MAXIMUM'
'GPRINT:max_summ2:%5.2lf%s\g' 'COMMENT:      '
'DEF:2dave2=/usr/local/data/william/rrds/p304-a.rrd:Average2:AVERAGE'
'LINE1:2dave2#FF8000:Ave2\:\g' 'VDEF:average_summ2=2dave2,AVERAGE'
'GPRINT:average_summ2:%5.2lf%s\g'

The one with two data sources is graphed like this:

rrdtool 'graph' '/home/william/public_html/p105-a-2d.png' '--upper-limit' '20'
'--lower-limit' '0' '--vertical-label' 'Amps' '--title' 'p105-a (2 days)'
'--start' '1146940548' 'LINE1.25:18#FF0000' 'COMMENT:  '
'DEF:2dmax=/usr/local/data/william/rrds/p105-a.rrd:Maximum:MAX'
'AREA:2dmax#FF8000:Max\:\g' 'VDEF:max_summ=2dmax,MAXIMUM'
'GPRINT:max_summ:%5.2lf%s\g' 'COMMENT:      '
'DEF:2dave=/usr/local/data/william/rrds/p105-a.rrd:Average:MAX'
'AREA:2dave#7ABDFF:Ave\:\g' 'VDEF:average_summ=2dave,AVERAGE'
'GPRINT:average_summ:%5.2lf%s\g'

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list