[smokeping-users] Purging timeframes from RRD's
mm at elabnet.de
Thu Dec 16 01:37:46 MET 2004
from time to time it happens that smokeping records very ugly RTT's
when the connectivity to the server running smokeping is flapping etc.
Now, it's quite time consuming to correct this afterwards because
some hours of a flapping line kill a elsewhere perfect 400-day graph..
I wrote a even more ugly shell-script to remove one day with
(below in case anybody likes it) but I'm sure there must be a better way
Is there any simple way of telling RRDtool to simply NaN a certain
For sure, the same will be helpful for any RRD, not only smokepings
--- smokeping-killday.sh ---
# 20041215 mm at elabnet.de kill a day from smokeping-RRDs
#if [ ! -e $RRDs ]
# echo "No RRDs found in current dir!"
# exit 1
echo "!!! Killing all line with $PURGESTRING in rrd/xml dump !!!"
echo "!!! BE CAREFUL !!!"
for i in `ls $RRDs`
echo "Processing $i"
rrdtool dump $i | grep -v "$PURGESTRING" > $i.xml
mv $i $i.bak
rrdtool restore $i.xml $i
echo "consider deleting old backup-files:"
ls -R *.rrd.bak | more
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
More information about the smokeping-users