Hi,
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
dump/restore
(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
timeperiod ?
For sure, the same will be helpful for any RRD, not only smokepings
ones..
Michael
--- smokeping-killday.sh ---
#!/bin/bash
#
# 20041215 [EMAIL PROTECTED] kill a day from smokeping-RRDs
RRDDIR=/var/www/smokeping/
PURGESTRING="2004-12-14"
RRDs="*.rrd"
#if [ ! -e $RRDs ]
# then
# echo "No RRDs found in current dir!"
# exit 1
#fi
echo "!!! Killing all line with $PURGESTRING in rrd/xml dump !!!"
echo "!!! BE CAREFUL !!!"
read
for i in `ls $RRDs`
do
echo "Processing $i"
rrdtool dump $i | grep -v "$PURGESTRING" > $i.xml
mv $i $i.bak
rrdtool restore $i.xml $i
rm $i.xml
done
echo
echo "consider deleting old backup-files:"
ls -R *.rrd.bak | more
exit 0
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi