[rrd-users] Re: Timestamp MAX/MIN value
Serge Maandag
serge.maandag at staff.zeelandnet.nl
Thu Nov 6 17:48:25 MET 2003
I think not.
I like to do it in bash, b.t.w., looks just as good as my average perl code:
rrdtool dump database.rrd | grep '<row>' | sed 's/^[ ]*//;s/[ ]*$//' | cut -d" " -f9,6 | awk '{print $2,$1}' | sort -g | tail -1 | cut -d" " -f2
Serge.
> -----Original Message-----
> From: Stephan Harren [mailto:sh at abovenet.de]
>
> Hi All,
>
> is there an easier way to find out the timestamps of
> MAX-/MIN-values without
> using bash or something than the one I found (see below)?
>
> /usr/local/rrdtool-1.0.45/bin/rrdtool graph -a PNG test.png
> ...
> PRINT:maxtime:LAST:"maxtime %.0lf" PRINT:mintime:LAST:"mintime %.0lf"
>
> Best regards,
> Stephan
--
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