Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rrd-users] rrd problem

4 views
Skip to first unread message

Canhua

unread,
Apr 26, 2010, 11:08:46 AM4/26/10
to
hi all,

I create a rrd, the info is as follows:
_______________________________________
filename = "mailrelay1.rrd"
rrd_version = "0003"
step = 300
last_update = 1272293941
ds[p0].type = "COUNTER"
ds[p0].minimal_heartbeat = 600
ds[p0].min = 0.0000000000e+00
ds[p0].max = NaN
ds[p0].last_ds = "0"
ds[p0].value = 0.0000000000e+00
ds[p0].unknown_sec = 241
ds[p1].type = "COUNTER"
ds[p1].minimal_heartbeat = 600
ds[p1].min = 0.0000000000e+00
ds[p1].max = NaN
ds[p1].last_ds = "0"
ds[p1].value = 0.0000000000e+00
ds[p1].unknown_sec = 241
ds[p2].type = "COUNTER"
ds[p2].minimal_heartbeat = 600
ds[p2].min = 0.0000000000e+00
ds[p2].max = NaN
ds[p2].last_ds = "0"
ds[p2].value = 0.0000000000e+00
ds[p2].unknown_sec = 241
ds[p3].type = "COUNTER"
ds[p3].minimal_heartbeat = 600
ds[p3].min = 0.0000000000e+00
ds[p3].max = NaN
ds[p3].last_ds = "0"
ds[p3].value = 0.0000000000e+00
ds[p3].unknown_sec = 241
ds[p4].type = "COUNTER"
ds[p4].minimal_heartbeat = 600
ds[p4].min = 0.0000000000e+00
ds[p4].max = NaN
ds[p4].last_ds = "0"
ds[p4].value = 0.0000000000e+00
ds[p4].unknown_sec = 241
ds[p5].type = "COUNTER"
ds[p5].minimal_heartbeat = 600
ds[p5].min = 0.0000000000e+00
ds[p5].max = NaN
ds[p5].last_ds = "0"
ds[p5].value = 0.0000000000e+00
ds[p5].unknown_sec = 241
ds[p6].type = "COUNTER"
ds[p6].minimal_heartbeat = 600
ds[p6].min = 0.0000000000e+00
ds[p6].max = NaN
ds[p6].last_ds = "1462"
ds[p6].value = 0.0000000000e+00
ds[p6].unknown_sec = 241
ds[p7].type = "COUNTER"
ds[p7].minimal_heartbeat = 600
ds[p7].min = 0.0000000000e+00
ds[p7].max = NaN
ds[p7].last_ds = "2191202"
ds[p7].value = 0.0000000000e+00
ds[p7].unknown_sec = 241
rra[0].cf = "AVERAGE"
rra[0].rows = 28800
rra[0].cur_row = 3697
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[0].cdp_prep[5].value = NaN
rra[0].cdp_prep[5].unknown_datapoints = 0
rra[0].cdp_prep[6].value = NaN
rra[0].cdp_prep[6].unknown_datapoints = 0
rra[0].cdp_prep[7].value = NaN
rra[0].cdp_prep[7].unknown_datapoints = 0
------------------------------------------------------------

as you can see the step is 300 seconds, and I update the rrd every minute,
but I get NaN when I "fetch" from the rrd

Can some guy help me find out the problem?
Thank you !!

_______________________________________________
rrd-users mailing list
rrd-...@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Simon Hobson

unread,
Apr 26, 2010, 11:59:59 AM4/26/10
to
Canhua wrote:

>I create a rrd, the info is as follows:
>_______________________________________
>filename = "mailrelay1.rrd"
>rrd_version = "0003"
>step = 300
>last_update = 1272293941

...


>as you can see the step is 300 seconds, and I update the rrd every minute,
>but I get NaN when I "fetch" from the rrd

How long did you enter data for ?
Which RRA did you fetch ?

Each data point (where primary or consolidated) will not be available
until there has been atr least one update after the period ends. For
a primary data point, this will be after an integral number of "step"
seconds from unix epoch has elapsed - so that means every 5 minutes
(ie n:00, n:05, n:10, ...). For consolidated data points, it means
integral multiples of (step*pdp_per_row) from unix epoch (eg if
pdp_per_row were 3, then that would mean on the hour, quarter past,
half past, and quarter to). In your case, pdp_per_row is 1 so you
should get data available when you do an update that is on or past
each five minute step.

Ie, if you update at 00:04:59 then you have not completed the step
and it will be NaN. If you update on or after 00:05:00 then it is and
data will be available for that step.

In each case, you must have entered enough data for the sample period
to be known. In your case, if you don't enter data for more than 10
minutes (600s) then the data becomes unknown.

In your dump, I see unknown_sec = 241 - that suggests you've only
just started entering data - give it another 5 minutes and it should
be OK.

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

Canhua

unread,
Apr 26, 2010, 9:26:25 PM4/26/10
to


I enter data every minute by cron, and I fetch the AVERAGE RRA(I have
only one RRA actually). My cron have run many many hours and even
days, and I still 'fetched NaN.

0 new messages