[rrd-users] Graph is not lined up correctly (off by 5 minutes)

Eric Bullen ericb at thedeepsky.com
Wed Dec 19 17:43:58 MET 2001


Hi All,

This one has me stumped, and I can't see where I am making a mistake. The
below script will generate a RRD and PNG file with some test data- the whole
graph is off by 5 minutes (the dump command shows it as being correct). Does
anyone know how to correct this, or what I am doing wrong?

Also, when I change the RRDTOOL create command from GAUGE to AVERAGE, the
resulting graph makes no sense- I have commented the code to explain what I
would think would be correct. Thanks in advance for your help.

Here's the script:

>>>>
# Change the below word from GAUGE to COUNTER,
# and the graph makes no sense (should be a
# spike of 1 at 17:55 and a spike of 4 at
# 16:50), and the Y-Axis scale is off.

rrdtool create foo_stats.rrd -b 1008630300      \
                DS:foo_count:GAUGE:600:U:U      \
                RRA:AVERAGE:0.50:1:288          \
                RRA:AVERAGE:0.50:6:336          \
                RRA:AVERAGE:0.50:24:360         \
                RRA:AVERAGE:0.50:292:360

# Mon Dec 17 15:05:01 PST 2001 (date of line below)
rrdtool update foo_stats.rrd 1008630301:1
rrdtool update foo_stats.rrd 1008630601:1
rrdtool update foo_stats.rrd 1008630901:1
rrdtool update foo_stats.rrd 1008631201:1
rrdtool update foo_stats.rrd 1008631501:1
rrdtool update foo_stats.rrd 1008631801:1
rrdtool update foo_stats.rrd 1008632101:1
rrdtool update foo_stats.rrd 1008632401:1
rrdtool update foo_stats.rrd 1008632701:1
rrdtool update foo_stats.rrd 1008633001:1

# Mon Dec 17 15:55:01 PST 2001 (date of line below)
# Graph shows below entry starts at 15:50.
rrdtool update foo_stats.rrd 1008633301:2
rrdtool update foo_stats.rrd 1008633601:2
rrdtool update foo_stats.rrd 1008633901:2
rrdtool update foo_stats.rrd 1008634202:2
rrdtool update foo_stats.rrd 1008634501:2
rrdtool update foo_stats.rrd 1008634802:2
rrdtool update foo_stats.rrd 1008635101:2
rrdtool update foo_stats.rrd 1008635402:2
rrdtool update foo_stats.rrd 1008635701:2
rrdtool update foo_stats.rrd 1008636001:2
rrdtool update foo_stats.rrd 1008636301:2

# Mon Dec 17 16:50:01 PST 2001 (date of line below)
# Graph shows below entry starts at 16:45.
rrdtool update foo_stats.rrd 1008636601:6
rrdtool update foo_stats.rrd 1008636901:6
rrdtool update foo_stats.rrd 1008637201:6

rrdtool graph  foo.png                                        \
                --start 1008630600                            \
                --end 1008637201                              \
                --imgformat PNG                               \
                --width 500                                   \
                --height 300                                  \
                DEF:foo_def=foo_stats.rrd:foo_count:AVERAGE   \
                CDEF:foo=foo_def,1,*                          \
                LINE2:foo#FF0000
<<<<


--
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