Re: Erratic traffic spikes in Cricket obscuring graphs

Francois Mikus <[email protected]> Fri, 31 Aug 2007 12:48:54 -0400
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
Hello,

1 - Using rrd-max or rrd-min can be helpful in keeping the values within 
logical bounds. genDevConfig (or genRtrConfig for holdouts) will do this 
automatically for you.
2 - Manually dumping an rrd file and editing the resulting  xml file is 
another approach. A wee bit unwieldy as michael pointed out.
3 - Manually tune an rrd to set values outside of max to NaN using: 
rrdtool tune <file> --maximum <ds>:<value>
4 - Using the perl script removespikes.pl available at: 
http://oss.oetiker.ch/rrdtool/pub/contrib/ can also be a powerful tool.
ex: perl removespikes.pl -l 1 fastrouter_ethernet0_1.rrd Though this may 
eat up some valid values in the process, use with caution!
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 the spikes 
are all removed.

These suggestions will fix most problems with small quantities of 
spurious values.

Francois Mikus

Michael Bunk wrote:
> Hello Michael,
>
> since all cricket does is to put the data into the rrdbs and all 
> calculations with the values and drawing of the graphs is done by 
> rrdtool, you have to look in the configuration of your rrdbs. I see your 
> daily graph has missing values, which can lead to high derivaties using 
> rrd-ds = counter. Probably you have to use another rrd-ds type or set an 
> rrd-max value.
>
> Best regards,
> Michael Bunk
>
> Michael Tiarnaigh schrieb:
>   
>> Hi all.
>>
>> Just a quick query to see if anyone has found a quick and effective 
>> solution to this.
>>
>> I am having an issue with some Cricket graphs, whereby a single 
>> erratic spike at a given time (I’m not sure what causes such spikes to 
>> be honest) obscures the rest of the data for that entire graph. For 
>> instance, below is a typical case in point:
>>
>>
>>       *Daily graph*
>>
>>
>>       *Weekly graph*
>>
>> This is a ge interface on a router, and as you can see, the daily 
>> graph is showing as normal, but because of a few ridiculous spikes in 
>> the weekly graph, the scale is entirely thrown off, and as such, I 
>> cannot see the correct data that I am interested in, as it is too 
>> small to register.
>>
>> I have found one solution to correcting this, but it’s an extremely 
>> time-consuming and tedious means of doing things. Basically, I dump 
>> the contents of the back-end rrd file to an xml file (“rrdtool dump 
>> ifName.rrd >> ifName.rrd.xml”), edit this file to find the time stamp 
>> in question where the spike occurred and manually delete these entire 
>> data rows. Save this file, and then do an rrd restore (“rrdtool 
>> restore ifName.rrd.xml ifName.rrd”). This does solve the issue I 
>> guess. It removes the spike, and as such, once I clear the 
>> cricket-cache for these graphs, I can then see the correct data again. 
>> The problem with this is that firstly, I lose the data for that time 
>> period, and secondly, it is an extremely time consuming process.
>>
>> Has anyone found a quicker way of eliminating these ridiculous spikes, 
>> or found a better work-around than the one I just described above?
>>
>> Thanks in advance for any help offered,
>>
>> **Micheal Tiarnaigh**
>>
>>     
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> cricket-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cricket-users
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/