Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Script to repair spikes in all your .rrd files at once

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
adjacent



Joined: 14 Jul 2004
Posts: 10
Location: Beaufort, SC

PostPosted: Wed Jul 28, 2004 10:19 am    Post subject: Script to repair spikes in all your .rrd files at once Reply with quote

This is a little Bash script I threw together that uses removespikes.pl to fix all the spikes in your graphs. It is useful to run nightly or weekly to fix spikes caused by power outages, and device reboots.

I doubt I'm the only one who made a script like this, so if you have a more elegant solution please let us know. Happy graphing!

Scott



fix_all_spikes.txt
 Description:
Make sure to make this script chmod +x

Download
 Filename:  fix_all_spikes.txt
 Filesize:  703 Bytes
 Downloaded:  1342 Time(s)

Back to top
Ghandi
Cacti User


Joined: 04 May 2004
Posts: 73
Location: Graz / Austria

PostPosted: Thu Jul 29, 2004 8:07 am    Post subject: Reply with quote

is there a script "commander" available that is so good and can programm this script for windows? that were very helpfull for me, and i think for lot others to

one question, when i reboot devices i get the spike, ok, i understand why, BUT... today i reboot one of our 5 citrix servers.. and i get no spike.. then i reboot it again for watching what happened... and i get again no spike.. hmm... why? why i get no spike when i reboot this server... on all others spike will shown.. but not for this one...

greetings..
Back to top
adjacent



Joined: 14 Jul 2004
Posts: 10
Location: Beaufort, SC

PostPosted: Thu Jul 29, 2004 9:04 am    Post subject: Reply with quote

Sorry, I'm Windows illiterate, but I think there are utilities out there to convert bash scripts to batch files. About the spikes you are getting, or not getting. It has to do with the counters used by cacti and how they roll over. But, there are alot of threads about this so I want waste anymore bandwidth on it.
Back to top
Ghandi
Cacti User


Joined: 04 May 2004
Posts: 73
Location: Graz / Austria

PostPosted: Thu Jul 29, 2004 9:21 am    Post subject: Reply with quote

ok, thanks for your info.. i will search the forum.. and a tool for bash-batch files!

thx
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group