[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] feature
- From: Howard Jones <howie@xxxxxxxxxx>
- Subject: Re: [php-weathermap] feature
- Date: Wed, 04 Jun 2008 08:42:47 +0100
Travis Johnson wrote:
I have something like this planned already. It won't be quite as you describe though.Hi,I would like to request a new feature. I would like the ability to display the maximum value for a link over the last XX number of hours.Example: I have several network maps that show current, real-time data of all my backbone links. However, it would be very useful to just enable a feature in the global config section and have it create an additional map that shows the maximum value on all the links over the last 24 hours.
You can use rrdtool's PRINT function to get it to calculate a VDEF for you over a period of time. That allows you to get monthly max, weekly average etc, but the syntax isn't the same as for a normal rrd target. I suppose for a limited number of cases it *could* be for the user, but by allowing any VDEF, it's much more flexible...
The downside of that is that it would be something you 'just enable'. Here's what I have in my notes for this:
rrdtool graph /dev/null -f "" -s now-30d -e now DEF:in=../rra/atm-sl_traffic_in_5498.rrd:traffic_in:AVERAGE DEF:out=../rra/atm-sl_traffic_in_5498.rrd:traffic_out:AVERAGE VDEF:avg_in=in,AVERAGE VDEF:avg_out=out,AVERAGE PRINT:avg_in:%lf PRINT:avg_out:%lf
to produce a 30 day average in/out value. Change AVERAGE to any other CF as appropriate.
Maybe it should be two new features - the 'quick, just enable' version that translates from existing targets, and a more general one.
Howie
- References:
- feature
- From: Travis Johnson
- feature