On Mon, Feb 23, 2004 at 10:55:15PM -0800, Eric Ho wrote:

> How can I draw a high-water mark line across a graph ?

1: find out the high-water mark
2: draw the line.

For #1:  use rrdtool without graphing elements, use PRINT in stead
(that's PRINT, not GPRINT !!!) with, in this case, MAX.

For #2:  use HLINE in your grapher script, with a variable in the
calling script (NOT in the rrdtool command input).

For instance in bash:

highwater=`rrdtool graph ... PRINT:ds0:MAX:%6.2lf`
echo DEBUG: highwater=${highwater}
rrdtool graph ... HLINE:${highwater}#F00

HTH
Alex
-- 
begin  sig
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1
This message was produced without any <iframe tags

--
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

Reply via email to