[rrd-users] Re: Printing a text report instead of a graph
Ruttenberg, Tanya
Tanya.Ruttenberg at ssa.gov
Tue Oct 24 19:08:16 MEST 2006
I originally thought that would do the trick. However, I've never
gotten the results I want.
For example, here is my original graph statement
rrdtool graph - \
--start=end-86400 \
--title=SSA-SRSW-NCC-W00C02 \
--vertical-label=bandwidth % \
--imgformat=PNG \
--width=750 \
--base=1000 \
--height=180 \
--interlaced \
DEF:a=/data1/cricket-data//NCC/ssa-srsw-ncc-w00c02_3-1_if.rrd:ifhcinocte
ts:AVERAGE \
DEF:b=/data1/cricket-data//NCC/ssa-srsw-ncc-w00c02_3-1_if.rrd:ifhcoutoct
ets:AVERAGE \
CDEF:A=a,125000000,/,100,* \
CDEF:B=b,125000000,/,100,* \
LINE1:A#00FFFF:ifhcinoctets AVERAGE \
GPRINT:A:MIN:"Min\: %8.2lf%s" \
GPRINT:A:AVERAGE:"Avg\: %8.2lf%s" \
GPRINT:A:MAX:"Max\: %8.2lf%s" \
GPRINT:A:LAST:"Last\: %8.2lf%s" \
LINE1:B#0000FF:ifhcoutoctets AVERAGE \
GPRINT:B:MIN:"Min\: %8.2lf%s" \
GPRINT:B:AVERAGE:"Avg\: %8.2lf%s" \
GPRINT:B:MAX:"Max\: %8.2lf%s" \
GPRINT:B:LAST:"Last\: %8.2lf%s"
Gives me a nice graph.
I make the following changes removing everything related to the graph
and changing the GPRINTs to PRINTs:
rrdtool graph /var/tmp/out.txt \
--start=end-86400 \
DEF:a=/data1/cricket-data//NCC/ssa-srsw-ncc-w00c02_3-1_if.rrd:ifhcinocte
ts:AVERAGE \
DEF:b=/data1/cricket-data//NCC/ssa-srsw-ncc-w00c02_3-1_if.rrd:ifhcoutoct
ets:AVERAGE \
CDEF:A=a,125000000,/,100,* \
CDEF:B=b,125000000,/,100,* \
PRINT:A:MIN:"Min\: %8.2lf%s" \
PRINT:A:AVERAGE:"Avg\: %8.2lf%s" \
PRINT:A:MAX:"Max\: %8.2lf%s" \
PRINT:A:LAST:"Last\: %8.2lf%s" \
PRINT:B:MIN:"Min\: %8.2lf%s" \
PRINT:B:AVERAGE:"Avg\: %8.2lf%s"\
PRINT:B:MAX:"Max\: %8.2lf%s" \
PRINT:B:LAST:"Last\: %8.2lf%s"
And get what I guess is the expected behavior, but it's not what I want:
Min: 486.93m
Avg: 13.15
Max: 97.81
Last: 2.23
Min: 1.43
Avg: 31.61
Max: 98.62
Last: 2.43
What I want is a list of datapoints that made up the LINE in the graph,
(preferably listed with a timestamp).
Tanya
P.S. Have any of you people who *really* understand rrdtool thought
about writing an O'Reilly book about it?
-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Alex van den
Bogaerdt
Sent: Tuesday, October 24, 2006 11:50 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: Printing a text report instead of a graph
On Tue, Oct 24, 2006 at 11:37:15AM -0400, Ruttenberg, Tanya wrote:
> I still think xport seems kind of messy--you have to wade through all
> that XML to get your data. But if noone has a different suggestion I
> will go back to trying RRDs::xport.
erm... are you saying you want the result of GPRINT, but not in the
graph but rather as text? If so: use PRINT.
--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list