[rrd-users] Re: rrdtool fetch simple perl

Alex van den Bogaerdt alex at ergens.op.het.net
Fri Sep 1 02:31:36 MEST 2006

On Fri, Sep 01, 2006 at 10:11:54AM +0000, Martin Rheumer wrote:
> RRdTool Fans,
> I have a simple requirement to get the maximum values over the
> past 24 hours. So I used this :
> rrdtool fetch fred.rrd MAX -s -86400 -e NOW 
> and run it at midnight ( it will get close enough ).
> What I'm wondering is has anyone written a perl script / shell
> to then get the maximum of the maximums ( the highest value )
> and the date time in dd-mmm-yyy etc format and would like to 
> share the script ?

rrdtool graph whatever --start end-86400 DEF:ds=...whatever...:MAX PRINT:ds:MAXIMUM:%6.2lf

fill in the blanks, remove any error I may have made, enjoy.

N.B.  It reads "PRINT", not "GPRINT".
Alex van den Bogaerdt

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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list