[hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles

Galen Johnson Galen.Johnson at sas.com
Wed Feb 25 18:57:55 CET 2009


It'd be nice if these were available on Xymonton...

-----Original Message-----
From: Martin Flemming [mailto:martin.flemming at desy.de] 
Sent: Wednesday, February 25, 2009 12:44 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles


Hi !

i use the very nice bbdataclean.pl script by Eric Schwimmer . :-)

.. it is a long time ago as he send a mail on this list .. where is he .. ? :-(

and the side was many month not availabe
but now as i watch today again, it was online again !

http://nerdvana.org/eric/bbtools/

bbhostedit
A CGI bb-hosts editor

bblogmon
A log monitor and alarm generator

bbdataclean
A tool to clean out old/invalid hosts from your hobbit data

bbmsg.pm
A pure-Perl module used to send messages to a display server


hobbit icons
A set of slightly less zany icons for the hobbit system


maybe some nice tools/addons for the shire ..


cheers,
 	martin



On Wed, 25 Feb 2009, Hubbard, Greg L wrote:

> It seems to me that the cleanest way is to figure out how to make your
> inventory system "know" when it is losing something.  I agree that it is
> easier to write a system that has no memory of what it did in prior
> runs.
>
> If your inventory system can be queried, or if you have an intermediate
> file that can be searched, you might be able to run a "notification"
> script from the alert system that would fire on "purple" alarms.  What
> the script could do is take the host name in the alarm and look for it
> in your inventory or other file -- if found, quit.  If not found, then
> the "drop host" command.  This is a kludge, and might cause other
> issues, but it is one way to keep your display cleaned up.
>
> Others may have much better ideas!
>
> GLH
>
>
> ________________________________
>
> 	From: thorsten.erdmann at daimler.com
> [mailto:thorsten.erdmann at daimler.com]
> 	Sent: Wednesday, February 25, 2009 9:50 AM
> 	To: hobbit at hswn.dk
> 	Subject: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned
> datafiles
>
>
>
> 	No. I export the data from our inventory and simply regenerate
> the bbhosts files. So old hosts simply are missing in the new bbhosts
> files. So I don't know which hosts were deleted. Therefore I would need
> to store the old export file and compare it to the new one to find the
> differences and use the "drop host" command. I find that very
> complicated.
>
> 	Such a cleanup utility would also be helpful if one edits the
> bbhosts by hand and forgets to drop a host he has deleted.
>
> 	I just started to write a shellscript which scans the rrd
> directory and tries to find the host in the bbhost files. But is
> complicated to follow all the includes. I thought bbhostgrep is the
> answer but it only can find a test, not a host.
>
> 	Any ideas
> 	Thorsten
>
>
>
>
>
> greg.hubbard at eds.com
>
> 25.02.2009 16:01
> Bitte antworten an
> hobbit at hswn.dk
>
>
> An
> hobbit at hswn.dk
> Kopie
> Thema
> RE: [hobbit] Howto delete abandoned datafiles
>
>
>
>
>
>
> 	Are you using the "drop host" function in the "bb" command?
>
>
> ________________________________
>
> 	From: thorsten.erdmann at daimler.com
> [mailto:thorsten.erdmann at daimler.com]
> 	Sent: Wednesday, February 25, 2009 8:54 AM
> 	To: hobbit at hswn.dk
> 	Subject: [hobbit] Howto delete abandoned datafiles
>
>
> 	Hi
>
> 	I have written a script which generates several hobbit bbhosts
> include files automaticly from our inventory system. Now I have a
> problem when a host has been deinstalled.
> 	I delete the entry from the hobbit config but the old datafiles
> (rrd and so on) keep there forever.
>
> 	Is there a tool to scan the complete hobbit bbhost hierarchy and
> delete all data which are not longer needed?
>
> 	Thank you
>
> 	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.
>
>
> 	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.
>
>
>
>

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk






More information about the Xymon mailing list