> Hello everyone. I wish to extract an average from my RRDtool > from the Linux command line interface. I am able to print > the number I want on a graph, but I am not able to extract > the number any other way. > > Here is the command I am using to create the graph: > > `rrdtool graph images/$graphname \ > ........... > GPRINT:total4:AVERAGE:"%8.2lf %s" > > How would I go about extracting that number without creating > a graph? I have checkout out rrdtool xport and rrdtool > fetch, but these do not seem to help me. ANY help is greatly > appreciated.
Rrdtool fetch will help you, but you will have to calculate the average your self. You can also use the graph statement you posted, leave out all line, stack and area statements and take out the G in your GPRINT. A PRINT statement will print the value to stdout, so you can grab it and put it in a variable. Serge. ------------- Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php -- 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
