[rrd-users] Update multiple .rrd files

Jamie Bedford Jamie.Bedford at computershare.co.uk
Tue Nov 2 11:26:47 CET 2010


This is my first post to the forum.

I want to know if its possible to update multiple .rrd files at once. I want to be able to change the maximum ds value in all traffic rrd files

I have tried using the following syntax

rrdtool tune pavfr2-s200-*_traffic_*_*.rrd --maximum traffic_in:1000000000 --maximum traffic_out:1000000000

rrdtool tune pavfr2*_traffic*.rrd --maximum traffic_in:1000000000 --maximum traffic_out:1000000000

and combinations of the above.

It just doesn't seem to work.

F:\apache2\htdocs\cacti\rra>rrdtool info pavfr2-s200-1_traffic_in_765.rrd
filename = "pavfr2-s200-1_traffic_in_765.rrd"
rrd_version = "0003"
step = 60
last_update = 1288109947
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 120
ds[traffic_in].min = 0.0000000000e+000
ds[traffic_in].max = NaN
ds[traffic_in].last_ds = "590039818712"
ds[traffic_in].value = 6.6679704918e+004
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 120

I would like to be able to update the files in blocks by using a portion of the hostname and the word traffic. I'm a bit wary about updating all rrd files with the word traffic in

The reason I want to do this is because I have just changed the max ds value in my interface traffic data templates. This is because I have been seeing some massive spikes in my graphs. I have used spikekill to remove these spikes. Now I need to update rrd files so I don't get these Petabyte spikes again.

I'm using RRDTool 1.2.30 on a Windows server running Cacti.  I posted this issue on the Cacti forums but they directed me here as it's a more to do with rrdtool than Cacti.

I'm not a script expert :o(



Jamie Bedford
Data Comminucations Engineer - Technology Services
Jamie.bedford at computershare.co.uk

Computershare Technology Services (UK) Limited is registered in England & Wales Company No. 3199675. Registered Office: The Pavilions, Bridgwater Road, Bristol BS13 8AE

Please visit the following website to read the Computershare legal notice: http://www.computershare.com/disclaimer/emea

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20101102/770f9cda/attachment-0001.htm 

More information about the rrd-users mailing list