[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Antwort: RE: [hobbit] Howto delete abandoned datafiles
- From: Henrik =?unknown-8bit?q?St=C3=B8rner?= <henrik (at) hswn.dk>
- Date: Thu, 26 Feb 2009 10:58:06 +0100
- References: <58EF0861D3A1A04182720B3A5231C7C2040DEC7B (at) usplm205.amer.corp.eds.com> <OFD042F763.223B1E5A-ONC1257568.00567A62-C1257568.0057046B (at) dcx.dcx>
- User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Feb 25, 2009 at 04:50:25PM +0100, thorsten.erdmann (at) daimler.com wrote:
> 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.
"bbhostshow" lists the full bb-hosts file, with all of the includes
done. Or you can query the hobbitd daemon with
bb 127.0.0.1 "hobbitdboard test=info fields=hostname"
to get a list of the currently known hosts.
Matching that against the directory names in ~hobbit/data/rrd/ would be
fairly trivial, and then you can use the
bb 127.0.0.1 "drop HOSTNAME"
to completely cleanup those hosts that no longer exist.
Regards,
Henrik