[hobbit] How to delete abandoned data

Rolf Schrittenlocher schritte at hebis.uni-frankfurt.de
Fri Sep 11 13:47:16 CEST 2009


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: (49) 69 - 798 28908   Fax: (49) 69 798 28817
LBS: lbs-f at mlist.uni-frankfurt.de
Persoenlich: schritte at hebis.uni-frankfurt.de 




More information about the Xymon mailing list