[rrd-users] Re: rrdtool tune

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Feb 21 01:56:24 MET 2001


Shawn Ferry wrote:
> 
> is there anyway to tune all of the ds heartbeat values in an rrd?
> 
> I currently have ~1100 in 115 files. 

I think a script would help here.  The "rrdtool info" command will
show you the current heartbeat but also, more important, the existing
DSes.

    rrdtool info rrdfile.rrd|grep 'heartbeat'
gives
    ds[ds0].minimal_heartbeat = 600
    ds[ds1].minimal_heartbeat = 600

The output of this should be trimmed and only contain the DSes.

    rrdtool info rrdfile.rrd|awk -F'[\[\\]]' '/heartbeat/{print $2}'
gives
    ds0
    ds1

Now use this in a script to generate "rrdtool tune file.rrd -h ds0:600"
commands and all you need is two for-next loops with proper variables.

foreach rrdfile
do
   foreach ds
   do
      rrdtool tune $rrdfile tune -h $ds:600
   done
done

Same approach but with other scripting tools on windows.

cheers,
-- 
   __________________________________________________________________
 / 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