[rrd-users] Re: Dynamic HRULE?
Alex van den Bogaerdt
alex at ergens.op.het.net
Fri Sep 1 20:46:48 MEST 2006
On Fri, Sep 01, 2006 at 06:47:26PM +0200, Cedric Lejeune wrote:
> |
> |----------------------- <- max ever found
> | _
> | __ | |_ _
> |_| | | |___| |___ <- "current" processes
> | |____|
> |_______________________
>
max ever, so should not depend on the current time window.
Get this value using an extra rrdtool call.
Use PRINT, to print the maximum of all maximums.
The resulting number can then be used in your second call to
rrdtool, in other words you will be dynamically modifying your
grapher script.
(I don't debug this; that's a job for you):
maxval=$( rrdtool graph whatever
--start [suitable start time]
--end now
DEF:ds0=spamd.rrd:spamdProcesses:MAX
PRINT:ds0:MAX:%6.2lf
)
rrdtool graph eyecandy.png
--start end-24h
--end now
DEF:ds0=spamd.rrd:spamdProcesses:AVERAGE
HRULE:$maxval#FF0000:maximum\ ever
LINE1:ds0#0000FF:current
HTH
--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
--
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