[rrd-users] Why is no graph generated?

Ray Van Dolson rayvd at corp.digitalpath.net
Thu Jul 1 21:42:30 MEST 2004


I've got an RRD file (generated by OpenNMS actually) that I'm trying to
manually generate a graph from. Here's the output of rrdtool info:
totalAccessRejects.rrd totalAccessRequests.rrd

% rrdtool info totalAccessRequests.rrd

filename = "totalAccessRequests.rrd"
rrd_version = "0001"
step = 300
last_update = 1088707423
ds[totalAccessRequests].type = "COUNTER"
ds[totalAccessRequests].minimal_heartbeat = 600
ds[totalAccessRequests].min = NaN
ds[totalAccessRequests].max = NaN
ds[totalAccessRequests].last_ds = "74972"
ds[totalAccessRequests].value = 8.7713333333e+01
ds[totalAccessRequests].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 8928
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[1].cf = "AVERAGE"
rra[1].rows = 8784
rra[1].pdp_per_row = 12
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 3.2149090439e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "MIN"
rra[2].rows = 8784
rra[2].pdp_per_row = 12
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 3.8136212625e-01
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "MAX"
rra[3].rows = 8784
rra[3].pdp_per_row = 12
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 4.3845060908e-01
rra[3].cdp_prep[0].unknown_datapoints = 0

There is data in the archive as well:

% rrdtool fetch totalAccessRequests.rrd AVERAGE

            totalAccessRequests

1088698500: nan
1088698800: 4.7666666667e-01
1088699100: 4.6456666667e-01
1088699400: 4.4499933555e-01
1088699700: 4.3518697792e-01
1088700000: 3.9061368653e-01
1088700300: 3.6272646733e-01
1088700600: 3.4734219269e-01
1088700900: 3.9339800664e-01
1088701200: 3.6483012182e-01
1088701500: 3.8159468439e-01
1088701800: 3.9942414175e-01
1088702100: 4.2274640089e-01
1088702400: 4.5116279070e-01
1088702700: 4.4724186047e-01
1088703000: 4.5418454746e-01
1088703300: 4.4221545254e-01
1088703600: 4.4238250277e-01
1088703900: 4.4808416390e-01
1088704200: 4.8272425249e-01
1088704500: 4.8287574751e-01
1088704800: 4.8044651163e-01
1088705100: 3.8700996678e-01
1088705400: 3.9501661130e-01
1088705700: 3.8162691030e-01
1088706000: 4.3845060908e-01
1088706300: 4.1284606866e-01
1088706600: 3.8136212625e-01
1088706900: 3.9906976744e-01
1088707200: 4.1952698413e-01
1088707500: nan
1088707800: nan

(just an excerpt of the end of the data).

I have tried generating the graph with the following command (which seems to
work with GAUGE style data just fine...)

% rrdtool graph accept.png -a PNG \
   DEF:a=totalAccessRequests.rrd:totalAccessRequests:AVERAGE LINE1:a:#FF0000

The graph is generated successfully, and when I view it is is scaled properly
but there is no graph! Even if I use GPRINT to print out the 'a' variable,
i get the correct value.

Any ideas on why a graph isn't being generated? I've tried using a CDEF to
multiply values out, but no go... the only thing I can think of is that this
RRD file is a COUNTER, maybe that somehow needs special handling?

Any ideas would be appreciated.

Ray Van Dolson

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