[rrd-users] Re: Printing some calculated current values on a graph?

Anssi Saari as at sci.fi
Tue Aug 12 14:10:42 MEST 2003


On Tue, Aug 12, 2003 at 01:18:02PM +0200, Stephan Harren wrote:
> > But how can I print these CDEFed values? PRINT and GPRINT
> > seem to need an RRD as a source.
> >
> > It's obvious I can use perl (or anything) instead of rrdcgi or store
> > cpu percentages instead of the raw data but other than that?
> 
> I don't know if I got you right, but you can use the vnames that you gave the 
> CDEFed values for PRINT and GPRINT.

OK, but how? Using GPRINT:user_p:AVERAGE:"Current CPU\: %.2lf user, "

Gives ERROR: the RRD does not contain an RRA matching the chosen CF

The question becomes, what consolidation function exists for a CDEFed 
value? I tried AVERAGE, MIN, MAX, LAST already.

> BTW, if you use GAUGE and AVERAGE to store your data, you automatically store
> percentage as the linux raw values are hundredth of seconds ...

I think I'm doing that, but in my opinion, a value such as 744674 is
not a percentage. And lets keep it on the list, if you don't mind.

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