Just specify /dev/null as the output and use the PRINT command rather than
the GPRINT command to pull out your values.  I have done something similar.
You can use the 'fetch' option, but then you have to grab all the data and
do your other mods on it (potentially) rather than using the builtin power
of the CDEF.


Cliff Meece 
BP NextGen 
Chicago Cantera 1 
*   Mobile:  +1 (630) 640-4373 
*   Office:  +1 (630) 836-5058 
*   E-Mail:  [EMAIL PROTECTED] 


> 
> 
> 
> Hello,
> 
> Just for everyone's edification- I have read and re-read the 
> docs and also looked all over the web but I can't seem to 
> find my answer.
> 
> Basically, all I want to do is pull monthly bandwidth 
> calculations from a .rrd in plain text so I can stuff them 
> into a database.
> 
> What I can do now is this:
> 
> ./rrdtool graph foo.png --start -1m --imgformat PNG 
> --title="Monthly UU.Net" --vertical-label "KiloBytes per 
> Second" DEF:inoctets=myrouter.rrd:ds0:AVERAGE 
> DEF:outoctets=myrouter.rrd:ds1:AVERAGE 
> AREA:inoctets#00FF00:"In traffic" LINE1:outoctets#0000FF:"Out traffic"
> 
> but I can't seem to figure out what the command syntax is to 
> dump this to STDOUT.
> > 

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