[rrd-users] Fetch the time of the first entry

Steven Sim unixandme at outlook.com
Tue Jul 1 09:53:18 CEST 2014


Thanks for pointing this out!

I intend to process a data file each day but create the rrd database on the
FIRST day of the month.

The creation shall ensure sufficient data points in the first day to
contain the entire month but plot daily graphs until the end of the month,
whereby it will plot the entire month.

Say for example,

If i had a step interval of 15 minutes (900 seconds),

rrdtool create $RRDB --step 900 --start $STARTIME \

2880 = 24 hours x 4 data points per hour x 30 (thirty days in a month)

4 data points since one hour has 4 data points (15 minutes step).

Would the above be correct?

Deepest Regards
Steven Sim

On Tue, Jul 1, 2014 at 3:11 PM, Simon Hobson <linux at thehobsons.co.uk> wrote:

> Steven Sim <unixandme at outlook.com> wrote:
> > I'm being asked to write a scrip to append data to an rrd and plot
> daily, weekly and monthly graphs of said data.
> >
> > I already have a script to create an rrd and write data to it.
> >
> > To append, I'll simply bypass the 'creation' logic of my script and use
> a user specified rrd file.
> It may be just the way you write, but the wording makes me wonder if you
> properly understand how RRD works. Because in RRD, there is no such
> function as appending data - only updating. You specify the number of
> consolidated data points to keep at the point of creation, after that the
> size never changes and you only update values.
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20140701/f9d3b238/attachment.htm 

More information about the rrd-users mailing list