[ale] [OT] rrdtool examples
Randy Janinda
rjaninda at tqlabs.com
Mon Jun 24 15:32:12 EDT 2002
Hello everyone,
I've worked my way through the rrdtool tutorial and all the man pages
{create|update|fetch|graph} but cannot seem to wrap my mind around this
tool.
I have 10 data sources that report a number (this number acts as a
counter and continues to increment every day). All I want to do is pull
all these numbers in, once a day and create a graph showing the lines as
they climb.
I got this to work with a single data source, but cannot seem to get it
to handle multiple sources.
Does anyone have some examples or tips they would like to share?
What I have so far (and tell me if I'm doing something wrong here):
rrdtool create accum.rrd --start 1022299100 --step 86401 \
DS:Counter1:GAUGE:172900:0:2500 \
RRA:MAX:0.5:2:31
Then:
rrdtool update accum.rrd -t Counter1 1024113600:4
rrdtool update accum.rrd -t Counter1 1024200000:5
rrdtool update accum.rrd -t Counter1 1024286400:46
rrdtool update accum.rrd -t Counter1 1024372800:178
rrdtool update accum.rrd -t Counter1 1024459200:282
rrdtool update accum.rrd -t Counter1 1024545600:398
rrdtool update accum.rrd -t Counter1 1024632000:540
rrdtool update accum.rrd -t Counter1 1024718400:666
rrdtool update accum.rrd -t Counter1 1024804800:702
rrdtool update accum.rrd -t Counter1 1024891200:766
And finally:
rrdtool graph -a PNG test.png --start 1022212800 --end 1024891200 \
--title "Total Number of Reports (Past 30 Days)" \
-x DAY:1:DAY:5:DAY:5:0:%m/%d \
-y 50:2 \
-v "Number of reports" \
DEF:cnt1=accum.rrd:Counter1:MAX \
DEF:hou=accum.rrd:Houston:MAX \
LINE2:cnt1#FF0000:Counter 1
Any help appreciated.
Thanks,
Randy Janinda
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list