[rrd-users] Diurnal average
linux at thehobsons.co.uk
Fri Jul 14 21:51:44 CEST 2017
Helios Solaris <helios.solaris at gmx.ch> wrote:
> Is there an easy way to plot a diurnal average?
> I.e. the average from all days at 00:00, 00:01, 00:02 etc. so that I
> have a plot of an average day?
Over how many days ?
You might be able to do it with some of the time shift functions. If, for example, you wanted to do one day and average over the last , then I think you might do it like this :
Assuming START and END are already defined variables which give the start and end of our 7th day, and wiring "sort of shell script" (I'm used to dynamically generating graphs from Bash scripts and piping the resulting rrd command through rrd) ...
graph ... start=$START end=$END
You should now have a cdef with values which are the averages of the corresponding time slots over the last 7 days. I would suggest having a good read of the docs as the syntax above may not be completely accurate.
More information about the rrd-users