[rrd-users] RRD smoothing - please help
johan thoren
johan_thoren at yahoo.se
Tue Nov 11 09:12:48 CET 2008
Here is the RRD info. Look specifically at rra[0].cdp_prep[1].value = 2.2500000000e+00
Im possitive that Im only sending integer values to RRD. And them are sent every 100 seconds.
filename = "99.rrd"
rrd_version = "0003"
step = 100
last_update = 1226319614
ds[sPHI].type = "GAUGE"
ds[sPHI].minimal_heartbeat = 100
ds[sPHI].min = 0.0000000000e+00
ds[sPHI].max = 1.8760000000e+03
ds[sPHI].last_ds = "UNKN"
ds[sPHI].value = 0.0000000000e+00
ds[sPHI].unknown_sec = 0
ds[sPHO].type = "GAUGE"
ds[sPHO].minimal_heartbeat = 100
ds[sPHO].min = 0.0000000000e+00
ds[sPHO].max = 1.8760000000e+03
ds[sPHO].last_ds = "UNKN"
ds[sPHO].value = 4.2000000000e+01
ds[sPHO].unknown_sec = 0
ds[sARI].type = "GAUGE"
ds[sARI].minimal_heartbeat = 100
ds[sARI].min = 0.0000000000e+00
ds[sARI].max = 1.8760000000e+03
ds[sARI].last_ds = "UNKN"
ds[sARI].value = 0.0000000000e+00
ds[sARI].unknown_sec = 0
ds[sARO].type = "GAUGE"
ds[sARO].minimal_heartbeat = 100
ds[sARO].min = 0.0000000000e+00
ds[sARO].max = 1.8760000000e+03
ds[sARO].last_ds = "UNKN"
ds[sARO].value = 0.0000000000e+00
ds[sARO].unknown_sec = 0
rra[0].cf = "MAX"
rra[0].rows = 1000
rra[0].pdp_per_row = 3
rra[0].xff = 0.0000000000e+00
rra[0].cdp_prep[0].value = 0.0000000000e+00
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = 2.2500000000e+00
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = 0.0000000000e+00
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[0].cdp_prep[3].value = 0.0000000000e+00
rra[0].cdp_prep[3].unknown_datapoints = 0
Thanks
Johan
--- Den tis 2008-11-11 skrev William R. Lorenz <wrl at express.org>:
Från: William R. Lorenz <wrl at express.org>
Ämne: Re: [rrd-users] RRD smoothing - please help
Till: "johan thoren" <johan_thoren at yahoo.se>
Kopia: rrd-users at lists.oetiker.ch
Datum: tisdag 11 november 2008 08.26
Hej Johan,
On Tue, 11 Nov 2008, johan thoren wrote:
> William, thanks for your reply! I looking to accomplish a five minute
> graph with integer values like below. The problem is that I cant get rid
> of the double X.XX values that is produced by RRD.
If you'd like to get rid of any double X.XX values and convert them to
integers, have you considered a Perl or C or Bash or ZSH int/floor/ceil
type of function? :-) Perhaps there's some intermediate steps that could
also happen between the data returned by rrdtool and your application?
It should be rather trivial to convert all those mathematical values? :-)
> no.
> 4. ____
> 3. ____
> 2. ____
> 1.____ ____
> 0. 300. 600. 900. 1200 time
With regards to your previous email (as you write -- "my goal is to store
data and ONLY display the maximum value"), max values are not necessarily
integer values. Are you also able to share more about your overall goals?
As a disclaimer, I'm sure there's others on this mailing list that know
a
lot more than I do about such things, and I defer to their wise expertise.
Hope this may help, at least a bit. Take care,
--
William R. Lorenz
__________________________________________________________
Ta semester! - sök efter resor hos Kelkoo.
Jämför pris på flygbiljetter och hotellrum här:
http://www.kelkoo.se/c-169901-resor-biljetter.html?partnerId=96914052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20081111/777c613a/attachment-0001.html
More information about the rrd-users
mailing list