Xymon Mailing List Archive search

How to delete abandoned data

list Rolf Schrittenlocher
Fri, 11 Sep 2009 13:47:16 +0200
Message-Id: <user-cd1990b7a3a4@xymon.invalid>

Hi,

on UNIX (solaris, others may work)
try for testing
find . -name S\* -exec ls -l {} \;
for real delete
find . -name S\* -exec rm -f {} \;

kind regards
Rolf
Hi

I just saw that in all of my Hobbit's directories all datafiles 
(histlogs, rrd files, etc) are doubled. One with capitals and one without:

...
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s068v004
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 15:39 S068V004
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s068v010
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 13:03 S068V010
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s068v011
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 13:03 S068V011
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s068v012
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 13:03 S068V012
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s068v013
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 13:03 S068V013
drwxr-xr-x   2 hobbit nobody 1024 Aug  7 11:05 s68tts06
drwxr-xr-x   2 hobbit nobody 1024 Aug  6 13:03 S68TTS06
...

It seems that somebody "cleaned" the bb-hosts file on Aug 7. So how 
can I delete all that capital files. Because there are several 
hundreds of hosts it is difficult to do by hand. If I simply delete 
all files I loose all the history info. It's bad enough that I loose 
the history before Aug 7, but don't know a way to merge the files.

Maybe I should do a find to all files older than Aug 7?

Any ideas?

Thorsten Erdmann

If you are not the intended addressee, please inform us immediately 
that you have received this e-mail in error, and delete it. We thank 
you for your cooperation.
-- 
Mit freundlichen Gruessen
Rolf Schrittenlocher

HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid