Any way to null out some values in RRD?

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

Moderators: Developers, Moderators

Post Reply
ratty
Posts: 3
Joined: Thu Jan 25, 2007 7:48 pm

Any way to null out some values in RRD?

Post by ratty »

This is a really noobish question, and I did some googling and searches here and couldn't find it.

This is most of a RRD question than cacti, but I added a switch to my cacti setup a week ago, but forgot to set it to 64-bit counters, and there are ports that push over 100mbit, so it became an issue right away. After editing the data source and fixing it, there's a huge 300gbit spike, and its going to mess up billing for my company. Is there a script that can just null those samples out? Say if sample is greater than a value, just set it to nothing.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you're using rrdtool 1.2 graphs, there is a tool available from here http://thetoolsmith.com/rrd_editor_index.php which claims to fix these.

Another alternative is to run rrdtool dump, manually edit the xml and remove the spike(s), then reimport it back to an rra file.

If you're still using rrdtool 1.0, then there is a removespikes.pl script that will do what you want.
ratty
Posts: 3
Joined: Thu Jan 25, 2007 7:48 pm

Post by ratty »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests