[rrd-users] Re: how do I do calculations to STDOUT?
Meece, Clifford T (MVC)
MeeceCT at bp.com
Mon May 20 20:48:57 MEST 2002
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.
Chicago Cantera 1
* Mobile: +1 (630) 640-4373
* Office: +1 (630) 836-5058
* E-Mail: meecect at bp.com
> 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
> 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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users