[rrd-users] Re: Help wint customization
Alex van den Bogaerdt
alex at ergens.op.HET.NET
Wed May 29 00:39:34 MEST 2002
Bryan Vest wrote:
> I can see that this line is pulling the numbers from somewhere:
>
> "GPRINT:$mds1:MAX:Max $sout", "GPRINT:mpcout:MAX:(%2.0lf%%)",
>
> Does ayone know how i can pull the data used by this GPRINT function to use
> in another area?
By far the easiest is to use another RRDtool command. Use rrdtool graph
without actually creating an image. Only use PRINT (not *G*PRINT) and
collect the output to use it as input for the next run.
> my $modemsinuse = qx(/usr/local/rrdtool-1.0.33/bin/rrdtool fetch $rrd
> MAX --start end-4minutes);
Close, you should use "graph", not "fetch". You can then query
MAX, MIN, AVERAGE and LAST as you're used to do.
rrdtool graph /dev/null
DEF:....
...
CDEF:....
...
no LINE, AREA, STACK or GPRINT
...
PRINT:ds0:MAX:%10.2lf
Now you can use $modemsinuse in the next rrdtool command, spanning
the same time range yet actually creating the graph.
If you like you can also have a look at the 1.1.x version. This is
alpha code but I think VDEF is suitable to solve your problem.
If you want to test it and comment on it that would be great.
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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