how to clear out a LARGE spike that screws up the graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

rtparies
Posts: 7
Joined: Fri Sep 10, 2004 12:40 pm

how to clear out a LARGE spike that screws up the graph

Post by rtparies »

Hello,
I have got a really large spike that screws up the display in the graph for that device. How can i reset it ?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rtparies
Posts: 7
Joined: Fri Sep 10, 2004 12:40 pm

found it but have some questions

Post by rtparies »

Sorry, this may be obvious, but i am not sure if i understand the readme.
I want to make sure i do not remove the spikes that i am really interested

Where: number is the % limit of spikes to chop (default: 0.6)
and name_of_database ir the rrd file to be treated.

this i am not sure what it means
The graph i have , the normal max is 6 -7 M and the spike is over 60M

No i do have some spike on other graphs up to 10M

So if some one can please explain.
Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

For example:

perl removespikes.pl -l 1 webstar_dpx2100_cable_modem_docsis_t3_1.rrd

This would remove all spikes within 1% of the datapoints in the rrd file. If 1% does not fix them, then continue to up the number until it does.
rtparies
Posts: 7
Joined: Fri Sep 10, 2004 12:40 pm

THANKS!

Post by rtparies »

it worked , thanks
skatter
Cacti User
Posts: 153
Joined: Fri Oct 22, 2004 2:55 am
Contact:

Post by skatter »

I get this error..

# ./removespikes.pl sdhqir0802_traffic_in_4381.rrd
<<output ommitted>>
Chopping peak at <!-- 2004-11-24 16:00:00 PST / 1101340800 -->
Chopping peak at <!-- 2004-11-26 16:00:00 PST / 1101513600 -->
./removespikes.pl: Unable to execute the rrdtool restore on sdhqir0802_traffic_in_4381.rrd - Illegal seek -
#
skatter
vulturul

Post by vulturul »

there might seem to be a problem
after i use the removespikes.pl i get no more data into that rrd, traffic showing "nan" any date/time AFTER removing the spike

any idea?
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Post by irfandp »

Same with me too, all in .rrd files become NaN.
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

I have this error, anyone knows what's wrong??

Code: Select all

root@phoenix:/usr/local/cacti/rra# /usr/local/cacti/removespikes/removespikes.pl 1 pcomamesp_scaetano_traffic_in_3259.rrd
sh: rrdtool: command not found
No peaks found.!
root@phoenix:/usr/local/cacti/rra#
tks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you are using rrdtool 1.2, there is a bug in 1.2.11 that causes versioning problems associated with Import/Export type functions. It will be corrected in 1.2.12.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Hi,

Is this RRDtool 1.2.12 available for download??

Tks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The beta is floating around out there, yes ;-). You'll have to ask around for it's compiler to provide it to the masses.
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

Is there a way to do this, only instead of using a percentage, using an actual value? Say 10mb on a traffic graph? So I have a graph where the upper vaule should be 10 mb/s but I have spikes up to 600mb/s. I want to essentially remove all spikes over 10mb/s. I want to do the same thing as the percentage version does, only I want it to work off real numbers, not percentages.

I am not a programmer, so I picked up a book on perl and some on PHP in hopes that I could fumble my way through this. But as of yet I can make the script work. I know I am just screwing things up in my scripts, but I feel it is important to try.

In the mean time, I feel that I could get more out of it if I had a working copy that did what I was looking for. 2 reasons there, first I am better at reading the code and determining what the differences do than trying to find what needs to be changed. And second because every one else would benefit for a coold script that could do this.

Lastly I wanted to learn some PHP in hopes of doing it all in PHP, then also I wanted to add this into Cacti, as a plugin so that there was a web GUI I could go into, select the rrd file, select the max level of the graph and maybe even select a time range or the different rras in the rrd. And finally tune the file to that size to hopefully prevent this from happening more. (however I have my doubts that this actually works, as I have several files tuned to 1.5mb/s that get spikes up to 600mb/s)

This way it may even be added right to the graph page, so while looking at a graph, if you notice a spike you could simply click on an icon which would automatically load the rrd you are viewing, and then you just select a max value, click go and away it goes.

I know I will never acutally get to a point where I can do this, I have a list of things I want to learn that is as long as my arm. Learning perl and PHP are not near the top of the list so they may never actually get done.

This brings me to the actual question here. Can someone write this function into an addon or better yet a plugin to Cacti? I would even offer to pay for the time, assuming that this required a pro. If I had to pay, I would of course give the code back to the forum here for everyone to use. And of course make sure the coder got all the credit.

EddieVenus
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'd like to recomment omitting the spikes. Define a MAX value at the Data Source level in the Data Template. Readings will be set to NaN during rrdtool update. To do this for existing rrd's, you'll have to use rrdtool tune <file> --maximum <ds>:<value>
Reinhard
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

lvm

Thank you. I do this to all new graphs I make. I have tuned all the graphs I have already, for the most part. It takes a while to find the rrd, the max, the rra and ds names, etc. I know I missed some, since I keep getting spikes. I am not sure how well that worked either, as some graphs that I have clearly changed the max values from within Cacti just after creation, now have spikes.

I appreciate the advice, but it is only part of the solution, and it is the part I already had. I am looking for the other half, where when I find spikes I can eliminate them, and tune the rrd at the same time.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests