spikes in my graph

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

Moderators: Developers, Moderators

Post Reply
guest

spikes in my graph

Post by guest »

I am a new user of cacti.
How do i remove spikes in my graph.

anyone please help
Guest

Post by Guest »

guest

Post by guest »

How use this script , plz. say step by step anyone
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

It should be pretty self-explanatory:

Code: Select all

$ killspike2                                                   
Usage: /home/server/bin/killspike2 <ds> <max> <rrd>...

Remove all peaks above <max> from <ds> in the RRDs <rrd>...
Just figure out the file that contains the datasource you want to
remove the spike from (inside cacti, click Data Sources in the menu,
select the source and find its file)and the name of the data source
that you need to remove the spike from (Graph Management ->
Select the graph, find the name of the datasource (ds)). Then fill in
the values in the command above.
mduran

example

Post by mduran »

In my case I use it today with this line

#perl killpeak.pl traffic_in 60000 /var/www/cacti/rra/aix01_traffic_in_808.rrd


Regards, Mauricio
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Anyone have a script like this working in a Win32 environment???
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

It's a perl script so if you just install Perl for Windows, then it should work.
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Guess I'll have to try it again, I thought I was getting nonexistant (Sh) shell errors and grep errors. I'll try it again...
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

Ouch, my mistake! It is really a shell-script (though the FAQ says it is
a perl script). Perhaps there is another perl-script out there - I've read the
names of at least two other scripts here in the forums, one called
removespikes.pl which was referenced here.

Sorry for the confusion :oops:

Edit: I found something called removespikes here:
http://people.ee.ethz.ch/~oetiker/webto ... b/contrib/

I believe you can open tar.gz with winzip, but if not let me know and I'll
help you out. :)
Ghandi
Cacti User
Posts: 73
Joined: Tue May 04, 2004 5:09 am
Location: Graz / Austria

Post by Ghandi »

hi,

i have used the script "removespikes.pl" for my spikes, i take the following command in the command line:

perl removespikes.pl -l 1 rrapath

then the following will shown:
--------------------------------------------------------------------------------
Use of uninitialized value in string eq at (eval 1) line 3.
Chopping peak at <!-- 2004-07-19 04:30:00 Westeuropõische
Sommerzeit / 1090204200 -->
Chopping peak at <!-- 2004-07-20 04:30:00 Westeuropõische
Sommerzeit / 1090290600 -->
Chopping peak at <!-- 2004-07-25 04:30:00 Westeuropõische
Sommerzeit / 1090722600 -->
Chopping peak at <!-- 2004-07-26 04:30:00 Westeuropõische
Sommerzeit / 1090809000 -->
Chopping peak at <!-- 2004-07-11 06:00:00 Westeuropõische
Sommerzeit / 1089518400 -->
Chopping peak at <!-- 2004-07-12 06:00:00 Westeuropõische
Sommerzeit / 1089604800 -->
Chopping peak at <!-- 2004-07-15 06:00:00 Westeuropõische
Sommerzeit / 1089864000 -->
Chopping peak at <!-- 2004-07-17 06:00:00 Westeuropõische
Sommerzeit / 1090036800 -->
Chopping peak at <!-- 2004-07-18 06:00:00 Westeuropõische
Sommerzeit / 1090123200 -->
Chopping peak at <!-- 2004-07-19 06:00:00 Westeuropõische
Sommerzeit / 1090209600 -->
Chopping peak at <!-- 2004-07-20 06:00:00 Westeuropõische
Sommerzeit / 1090296000 -->
Chopping peak at <!-- 2004-07-25 06:00:00 Westeuropõische
Sommerzeit / 1090728000 -->
Chopping peak at <!-- 2004-07-26 06:00:00 Westeuropõische
Sommerzeit / 1090814400 -->
Chopping peak at <!-- 2004-07-12 02:00:00 Westeuropõische
Sommerzeit / 1089590400 -->
Chopping peak at <!-- 2004-07-13 02:00:00 Westeuropõische
Sommerzeit / 1089676800 -->
Chopping peak at <!-- 2004-07-16 02:00:00 Westeuropõische
Sommerzeit / 1089936000 -->
Chopping peak at <!-- 2004-07-18 02:00:00 Westeuropõische
Sommerzeit / 1090108800 -->
Chopping peak at <!-- 2004-07-19 02:00:00 Westeuropõische
Sommerzeit / 1090195200 -->
Chopping peak at <!-- 2004-07-20 02:00:00 Westeuropõische
Sommerzeit / 1090281600 -->
Chopping peak at <!-- 2004-07-21 02:00:00 Westeuropõische
Sommerzeit / 1090368000 -->
Chopping peak at <!-- 2004-07-26 02:00:00 Westeuropõische
Sommerzeit / 1090800000 -->
Chopping peak at <!-- 2004-07-27 02:00:00 Westeuropõische
Sommerzeit / 1090886400 -->

----------------------------------------------------------------------

but the spikes doesn't gone? like here..

hope you can help me..

thanks
Attachments
cacti2.JPG
cacti2.JPG (239.24 KiB) Viewed 6404 times
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

I've never used that script, but it looks like it's based on %-values rather
than absolutes. I can only guess here, but perhaps it cuts ever value that
goes higher than a certain percentage of the highest spike, thus potentially
leaving many spikes that were lower than that. An example:

You have three spikes, one at 200M, one at 400M and one at 30G. You
decide to cut all spikes above 1% of the highest spike. The highest peak
is at 30G, so this means all spikes above 300M will be removed. After
running the script you still have the 200M spike left, and you'll have to run
the script again, perhaps with a different % this time so as not to kill the
real data.

Like I said - this is only guesswork. But it may be worth a shot to run the
script again - just make sure you make a backup first :)
Ghandi
Cacti User
Posts: 73
Joined: Tue May 04, 2004 5:09 am
Location: Graz / Austria

Post by Ghandi »

hi,

thanks for your replay, i thinkg i get it, but i doesn't understand it at all.

Now i use a percentage value from 5 and my graph looks like right, perhaps you can describe this a little bit easier to me because i made the following test...

i use the command with 1%, all spikes in the yearly, monthly and weekly were gone, but not the spike in the daily graph.. than i use it with a value from 5 and the daily spikes are alredy gone.

When i have one spike on the graph, with 80M and i use the percentage value from 5, then all spikes that where above 80M are cut?

sorry for my incompetence, i hope i will understand this and can check if the stats are right after use this skript.

thanks for your help! ;)
Kybber
Posts: 24
Joined: Mon Jul 05, 2004 10:29 am

Post by Kybber »

Sorry, but like I said, I am just guessing as to what the percentage is
myself since I've never used that script. I guess the best you can do is
to either read the code and try to figure it out for yourself or to just fix
your graphs by trial-and-error. Good luck!
PKLNTKJ334
Posts: 9
Joined: Mon May 02, 2005 12:14 pm
Location: Brazil
Contact:

Post by PKLNTKJ334 »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest