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:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
