Removing spikes from RRD databases
Spurious data may inadvertently make it’s way into a database. Treating this data is possible using the following means:
- Set the rrd-min and/or rrd-max variable(s) for each datasource when creating new RRD databases
- Use rrdtool dump to export the RRD database to XML format, edit out the spurious values and import the data back into the RRD database
- Use rrd tune to apply rrd-min and/or rrd-max variable(s) to an existing RRD database. All values outside the minimum or maximum defined bounds will be set to NaN.
rrdtool tune--maximum :
- Use the perl script removespikes.pl. This would remove all spikes within 1% of the datapoints in the rrd file. If 1% does not fix them, modify the % value up until all the spikes are removed. Though this may eat up some valid values in the process, use with caution!
perl removespikes.pl -l 1 fastrouter_ethernet0_1.rrd
- Use rrd_editor, a cross platform win32 or perl/tk tool to seek and remove spikes in an RRD. I have not used the tool, but according to comments it works as advertised. It also lets you easily add or remove RRAs and datasources from an RRD, which is a golden feature for many of us.
- Use killspike2 an RRD spike removal script distributed as part of the Cricket network management system. I have not used the script, but it is known to work.
genDevConfig will automatically set rrd-min and rrd-max values for all config-tree targets it creates for Cricket.
fonte: http://acktomic.com/2007/08/31/removing-spikes-from-rrd-databases/
(avaliar pois é muito antigo)
---- manual
rrdtool dump filename.rrd > filename.xml
vi filename.xml
rrdtool restore filename.xml filename.rrd
0 comentários:
Postar um comentário