[Xymon] Custom test with NCV

Adam Goryachev mailinglists at websitemanagers.com.au
Tue Jan 15 15:48:18 CET 2013


On 16/01/13 00:18, Thomas Kähn wrote:
> Hi,
>
> On Thu, Jan 10, 2013 at 09:34:13AM -0500, Michael Beatty wrote:
>> rrdtool tune myfile.rrd --minimum 0
>> Now, I'm not sure if this will clean up all of your existing data
>> with negative data points, (I kind of doubt it will).  But it'll
>> prevent new ones from showing up.
> after tuning one can dump and restore the rrd file to remove invalid
> data.
I can confirm that the following worked (as opposed to the syntax above):
for i in ds1 ds2 ds3 etc..
do
    rrdtool tune myfile.rrd --minimum ${i}:0
done
rrdtool dump myfile.rrd myfile.xml
rrdtool restore myfile.xml myfile.rrd -r

Thanks for your suggestions.

Regards,
Adam

-- 
Adam Goryachev
Website Managers
www.websitemanagers.com.au




More information about the Xymon mailing list