[rrd-users] Re: Timestamp for MAX value...

Serge Maandag serge.maandag at staff.zeelandnet.nl
Thu Sep 25 10:44:53 MEST 2003


rrdtool fetch database.rrd AVERAGE -s -2h | sort -g -k3 | tail -1 | cut -d':' -f1

Given an RRD with 2 data sources (ds0 and ds1), this one will:

- sort them by the value of ds1, low to high.
- remove anything but the last line, since that one has the max value
- remove the values and print the timestamp.

easy, eh!

Serge.

> -----Original Message-----
> From: James Mancini [mailto:jmancini at netreo.net]
> Sent: Wednesday, September 24, 2003 11:51 PM
> 
> Does anyone know if there is an easy way to get RRD to return 
> the timestamp
> at which a MAX value occurred? Thanks in advance...
> 
> ____________________________________________________
> James Mancini                                 Netreo
 

--
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