[rrd-users] Re: Newbie problem
Mohamed Eldesoky
m.eldesoky at tedata.net
Sun Mar 16 12:20:37 MET 2003
I have the same problem here ( posted about it earlier)
But in opposite, I get values much larger than the values that I insert to the
rrdupdate.
!!!
My rrdfile info is:
_______________________________________________________
rrd_version = "0001"
step = 300
last_update = 1047813304
ds[ds0].type = "COUNTER"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 2.0000000000e+08
ds[ds0].last_ds = "18442"
ds[ds0].value = 2.4470588235e+01
ds[ds0].unknown_sec = 0
ds[ds1].type = "COUNTER"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = 2.0000000000e+08
ds[ds1].last_ds = "74568"
ds[ds1].value = 2.9637370242e+02
ds[ds1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 800
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[1].cf = "AVERAGE"
rra[1].rows = 800
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 1.5094139588e+07
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 1.5094217690e+07
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 800
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 7.1773736762e+07
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 8.6090480746e+07
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 800
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 9.3057628436e+08
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 9.0194336581e+08
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 800
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 800
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 1.3626027215e+07
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 1.4894587128e+07
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 800
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 1.4067999877e+07
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 1.4894587128e+07
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 800
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 1.4316557268e+07
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 1.4894587128e+07
rra[7].cdp_prep[1].unknown_datapoints = 0
________________________________________________
Sorry for the long listing.
I run a script to sum the values from multiple rrd files, and update the
total, in the above mentioned file !!!
I get numbers that are above imagination.
Regards
Mohamed Eldesoky
On Sunday 16 March 2003 6:57 am, Steve Robb wrote:
> David/Justin
>
> The value that you are storing in the RRD is a number that represents a '5
> minute average expressed as units per second' which means that you need to
> multiply the stored value by 300 (secs) in order to display something that
> makes sense.
>
> Using your example -
>
> rrdtool graph spam-day.png --start -86400 \
> DEF:rss=spam.rrd:RSS:AVERAGE \
> DEF:dul=spam.rrd:DUL:AVERAGE \
> DEF:spews=spam.rrd:SPEWS:AVERAGE \
> DEF:spamhaus=spam.rrd:SPAMHAUS:AVERAGE \
> DEF:socks=spam.rrd:SOCKS:AVERAGE \
> DEF:sendmail_misc=spam.rrd:SENDMAIL_MISC:AVERAGE \
> new> CDEF:5minrss=rss,300,* \
> new> CDEF:5mindul=dul,300,* \
> new> CDEF:5minspews=spews,300,* \
> new> CDEF:5minspamhaus=spamhaus,300,* \
> new> CDEF:5minsocks=socks,300,* \
> new> CDEF:5minsendmail=sendmail,300,* \
> new> LINE2:5minrss#FF0000:"Legend for rss"\
> new> LINE2:5mindul#FF0000:"Legend for dul"\
> new> ...etc
>
> Steve Robb
>
> --
> 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
--
Person who say it cannot be done should not interrupt person doing it.
--Chinese Proverb
--
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