[rrd-users] Problem with rrdtool graph PRINT statement
Olly Butterfield
olly at gyron.net
Sat Jun 4 21:19:40 MEST 2005
Hi
I'm currently trying to produce some textual output from an rrdfile, to
show essentially the average transfer rate (in bits/sec) of a network
interface. This is to be integrated into a php script. Here is what I'm
running:
/usr/bin/rrdtool graph -
--start=1117580400
--end=1117904400
DEF:crin="cr1_traffic_in_48.rrd":traffic_in:AVERAGE
DEF:crout="cr1_traffic_in_48.rrd":traffic_out:AVERAGE
CDEF:cdefin=crin,8,*
CDEF:cdefout=crout,8,*
PRINT:cdefin:AVERAGE:"Average\:%8.2lf%s"
PRINT:cdefout:AVERAGE:"Average\:%8.2lf%s"
(reproduced here on separate lines for clarity)
The php script I'm using gets the timestamp for the start of the month
and for the the end point that i want to use. What I would expect to
happen is that 2 values are printed to the standard out, but nothing
seems no be happening - no errors and no output. I've tried rrdtool
fetch but for what I want to do, it's very very messy.
Thanks in advance
Olly B
--
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