[rrd-users] double-check of rrd -create syntaxes? (flat line graphs)

Robert Ames ramses0 at yahoo.com
Tue Nov 25 00:06:51 MET 2003


Hi...

Coming from cricket, but wanting a little more control over RRD,
trying to set everything up, and it seems deceptively easy /
deceptively hard.  I *think* I'm doing things right, but not
sure because the graphs that I'm trying to simulate are possibly
coming out wrong (well, I think they are).

Here's my english description:
  Low rate of change application (bug counts), 
  would like hourly samples.
  1) Accuracy of 1 hour samples for 30 days
  2) Average over 8 hours for 120 days
  3) Daily average for 365 days.

I translated this into "rrd-land" by saying:
  function create_rrd()
  {
        rrdtool create $1 -s 3600 \
                DS:enh:GAUGE:14400:0:U \
                DS:low:GAUGE:14400:0:U \
                DS:med:GAUGE:14400:0:U \
                DS:high:GAUGE:14400:0:U \
                DS:crit:GAUGE:14400:0:U \
                RRA:AVERAGE:0.5:1:720 \
                RRA:AVERAGE:0.5:8:360 \
                RRA:AVERAGE:0.5:24:365

  # notes / translation
  # create / rrd / step of 1 hour / datasource:enhancements:max
unknown time 4 hrs:min of 0:no max /
  #     include rra (array) : Average consolidation function :
up to 50% of unknown time : 1 sample : 30 days (720 buckets)
  #     include rra (array) : Average consolidation function :
up to 50% of unknown time : 8 samples : 120 days (360 buckets)
  #     include rra (array) : Average consolidation function :
up to 50% of unknown time : 24 samples : 365 days (365 buckets)
  }


My updates are like:
   rrdtool update test.rrd
   -t enh:low:med:high:crit $TIME:$1:$2:$3:$4:$5

...and since I don't want to have to wait 3 weeks to figure out
if I screwed it up, I wanted to ask for some help
troubleshooting as to why I am not seeing things changed by
graphing.

Here are my values:
 out1.sum:3 17 41 19 5
 out2.sum:3 16 40 21 5
 out3.sum:3 15 40 21 5
 out4.sum:3 14 40 21 5

I added them sequentially by saying:
  ./addscript.sh 3 17 41 19 5 `date -d "1 hour" +%s` 
  ./addscript.sh 3 16 40 21 5 `date -d "2 hour" +%s` 
  ...etc...
  (the date command returns unix timestamp 1 hour in future)

...when I do the graph:  (./graphit.sh "one day")

    rrdtool graph $PNG --title "$TITLE bugs (${LENGTH}day)" \
            --start -${LENGTH}d \
            DEF:crit=$RRD:crit:AVERAGE \
            DEF:high=$RRD:high:AVERAGE \
            DEF:med=$RRD:med:AVERAGE \
            DEF:low=$RRD:low:AVERAGE \
            DEF:enh=$RRD:enh:AVERAGE \
            AREA:enh#0000ff \
            STACK:enh#0000ff:Enhancements \
            STACK:low#00ff00:Low \
            STACK:med#ffff00:Med \
            STACK:high#ff8000:High \
            STACK:crit#ff0000:Critical

...the graph comes out as a flat line (but over the 4 hours that
I added data to it).  I've used graphing like this before with
cricket RRD data sources (I ran rrdtool graph directly on the
cricket rrd's), so I'm suspecting that I've messed something up
with my rrd-create... can anybody offer advice?

Appended is the output from "rrdtool info file.rrd"

Thanks for any help!

--Robert



Attached text...
----------------

filename = "test.rrd"
rrd_version = "0001"
step = 3600
last_update = 1069726414
ds[enh].type = "GAUGE"
ds[enh].minimal_heartbeat = 14400
ds[enh].min = 0.0000000000e+00
ds[enh].max = NaN
ds[enh].last_ds = "UNKN"
ds[enh].value = 2.4420000000e+03
ds[enh].unknown_sec = 0
ds[low].type = "GAUGE"
ds[low].minimal_heartbeat = 14400
ds[low].min = 0.0000000000e+00
ds[low].max = NaN
ds[low].last_ds = "UNKN"
ds[low].value = 1.1396000000e+04
ds[low].unknown_sec = 0
ds[med].type = "GAUGE"
ds[med].minimal_heartbeat = 14400
ds[med].min = 0.0000000000e+00
ds[med].max = NaN
ds[med].last_ds = "UNKN"
ds[med].value = 3.2560000000e+04
ds[med].unknown_sec = 0
ds[high].type = "GAUGE"
ds[high].minimal_heartbeat = 14400
ds[high].min = 0.0000000000e+00
ds[high].max = NaN
ds[high].last_ds = "UNKN"
ds[high].value = 1.7094000000e+04
ds[high].unknown_sec = 0
ds[crit].type = "GAUGE"
ds[crit].minimal_heartbeat = 14400
ds[crit].min = 0.0000000000e+00
ds[crit].max = NaN
ds[crit].last_ds = "UNKN"
ds[crit].value = 4.0700000000e+03
ds[crit].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 720
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[0].cdp_prep[3].value = NaN
rra[0].cdp_prep[3].unknown_datapoints = 0
rra[0].cdp_prep[4].value = NaN
rra[0].cdp_prep[4].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 360
rra[1].pdp_per_row = 8
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 6.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 2.9413333333e+01
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[1].cdp_prep[2].value = 8.0000000000e+01
rra[1].cdp_prep[2].unknown_datapoints = 0
rra[1].cdp_prep[3].value = 4.2000000000e+01
rra[1].cdp_prep[3].unknown_datapoints = 0
rra[1].cdp_prep[4].value = 1.0000000000e+01
rra[1].cdp_prep[4].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 365
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 6.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 2.9413333333e+01
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[2].cdp_prep[2].value = 8.0000000000e+01
rra[2].cdp_prep[2].unknown_datapoints = 0
rra[2].cdp_prep[3].value = 4.2000000000e+01
rra[2].cdp_prep[3].unknown_datapoints = 0
rra[2].cdp_prep[4].value = 1.0000000000e+01
rra[2].cdp_prep[4].unknown_datapoints = 0

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