[rrd-users] Re: graphing

Sasha Dolgy sdolgy at birdonawire.com
Wed May 23 01:16:14 MEST 2001


heh.  The code is taken from a bit of java i'm writing.  What it does
is call rrdtool using a system call.  What you see below is how to insert
a variable into a string.  

In the end it does look like:

CDEF:cout=239324,UN,0,23532,IF \

Still can't get it to work using variables that are produced outside of rrd.
-sasha


-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Tuesday, May 22, 2001 7:03 PM
To: sdolgy at birdonawire.com
Cc: rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] graphing


If I understand you, you'd like to insert the value from certain
variables ?

This of course depends on your shell however I've never encountered
one that dereferences variables by quoting them and surrounding them
with plus signs.  You may have gotten confused by awk scripts where
these kind of constructs can be seen.  However, in that case they look
like "CDEF:cout=" + currentOut + ",UN,0," + currentOut + ",IF"
and then the quotes are *not* around your variables.

My guess is that you should use CDEF:cout=$currentOut,UN,0,$currentOut,IF

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