[rrd-users] Re: rrdtool fetch simple perl
Tobias Oetiker
tobi at oetiker.ch
Fri Sep 1 08:28:35 MEST 2006
Today Alex van den Bogaerdt wrote:
> On Fri, Sep 01, 2006 at 02:31:36AM +0200, Alex van den Bogaerdt wrote:
> > 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 ?
>
> oops... you also want the date/time.
>
> then you need to sort your fetch output, take the numbers and
> feed it to perl. Or use google.
or use a curent rrdtool version which is able to print the location
(in time) of the MAX it found.
cheers
tobi
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://tobi.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
--
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