Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 27, 2019 5:31 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Script to repair spikes in all your .rrd files at once
PostPosted: Wed Jul 28, 2004 10:19 am 
Offline

Joined: Wed Jul 14, 2004 9:04 am
Posts: 10
Location: Beaufort, SC
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


Attachments:
File comment: Make sure to make this script chmod +x
fix_all_spikes.txt [703 Bytes]
Downloaded 3085 times

_________________
"And when the green on our graves has mouldered away, some gray warrior sitting by night at the blazing fire will tell thy deeds to his sons, and they shall bless and admire the men of old." - William Lewis Lockwood
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 8:07 am 
Offline
Cacti User

Joined: Tue May 04, 2004 5:09 am
Posts: 73
Location: Graz / Austria
is there a script "commander" available that is so good and can programm this script for windows? :D 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..


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 9:04 am 
Offline

Joined: Wed Jul 14, 2004 9:04 am
Posts: 10
Location: Beaufort, SC
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.

_________________
"And when the green on our graves has mouldered away, some gray warrior sitting by night at the blazing fire will tell thy deeds to his sons, and they shall bless and admire the men of old." - William Lewis Lockwood


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 9:21 am 
Offline
Cacti User

Joined: Tue May 04, 2004 5:09 am
Posts: 73
Location: Graz / Austria
ok, thanks for your info.. i will search the forum.. and a tool for bash-batch files! ;)

thx


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group