[rrd-users] Re: rrdtool create and data input questions
Alex van den Bogaerdt
alex at ergens.op.HET.NET
Tue Jun 4 08:41:55 MEST 2002
Daniel Curry wrote:
> I have a script (/usr/bin/vmstat | sed -e '/^ procs/d'| sed -e '/^ r
> b w/d' | awk '{ print systime() ":" $4 ":" $5 ":" $6}') that is
> getting memory stats for me from the local machine.
>
> Here is a sample of the output:
>
> 1023149803:3488:64656:58572
Looking good. At time 1023149803 you insert 3488, 64656 and 58572
> rrdtool create monitor-mem.rrd --start 1023148813
> DS:vm_used:COUNTER:60:U:U DS:free_mem:COUNTER:60:U:U
> DS:buffers:COUNTER:60:U:U RRA:AVERAGE:0.5:1:24
The size of the RRA is *very* short. Although correct, I think you
want it larger. You are telling rrdtool to keep stats for 300*24 seconds.
Also you indicate you want per minute stats --> use "--step 60".
> can someone help me figure out how to get the
> data into the .rrd, please? When I tried to rrdtool update file.rrd <
> my script.sh I get an error about not enough arguments.
Almost correct.
You can:
rrdtool update monitor-mem.rrd 1023149803:3488:64656:58572
rrdupdate monitor-mem.rrd 1023149803:3488:64656:58572
or you change the output of your script into
update monitor-mem.rrd 1023149803:3488:64656:58572
and then call rrdtool so:
rrdtool - < myscript.sh
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