Xymon Mailing List Archive search

Howto delete abandoned datafiles

list Thorsten Erdmann
Wed, 25 Feb 2009 16:50:25 +0100
Message-Id: <user-519e4fb78ffc@xymon.invalid>

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


user-d970b5e56ec9@xymon.invalid 25.02.2009 16:01
Bitte antworten an
user-ae9b8668bcde@xymon.invalid


An
user-ae9b8668bcde@xymon.invalid
Kopie

Thema
RE: [hobbit] Howto delete abandoned datafiles


Are you using the "drop host" function in the "bb" command?

From: user-9219fb9415b1@xymon.invalid [mailto:user-9219fb9415b1@xymon.invalid] Sent: Wednesday, February 25, 2009 8:54 AM
To: user-ae9b8668bcde@xymon.invalid
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.