<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2>Others may have much better ideas!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=399100316-25022009><FONT face=Verdana
color=#0000ff size=2>GLH</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> thorsten.erdmann@daimler.com
[mailto:thorsten.erdmann@daimler.com] <BR><B>Sent:</B> Wednesday, February 25,
2009 9:50 AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Antwort:
RE: [hobbit] Howto delete abandoned datafiles<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>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. </FONT><BR><BR><FONT face=sans-serif size=2>Such a cleanup
utility would also be helpful if one edits the bbhosts by hand and forgets to
drop a host he has deleted.</FONT><BR><BR><FONT face=sans-serif size=2>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.</FONT><BR><BR><FONT face=sans-serif size=2>Any ideas</FONT><BR><FONT
face=sans-serif size=2>Thorsten</FONT><BR><BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif
size=1><B>greg.hubbard@eds.com</B></FONT>
<P><FONT face=sans-serif size=1>25.02.2009 16:01</FONT>
<TABLE border=1>
<TBODY>
<TR vAlign=top>
<TD bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Bitte antworten
an<BR>hobbit@hswn.dk</FONT></DIV></TR></TBODY></TABLE><BR></P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>An</FONT></DIV>
<TD><FONT face=sans-serif size=1>hobbit@hswn.dk</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Kopie</FONT></DIV>
<TD>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Thema</FONT></DIV>
<TD><FONT face=sans-serif size=1>RE: [hobbit] Howto delete
abandoned datafiles</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT
face=Verdana color=blue size=2>Are you using the "drop host" function in the
"bb" command?</FONT><BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> thorsten.erdmann@daimler.com
[mailto:thorsten.erdmann@daimler.com] <B><BR>Sent:</B> Wednesday, February 25,
2009 8:54 AM<B><BR>To:</B> hobbit@hswn.dk<B><BR>Subject:</B> [hobbit] Howto
delete abandoned datafiles</FONT><FONT size=3><BR></FONT><BR><FONT
face=sans-serif size=2><BR>Hi</FONT><FONT size=3><BR></FONT><FONT
face=sans-serif size=2><BR>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.<BR>I delete the entry from the
hobbit config but the old datafiles (rrd and so on) keep there
forever.</FONT><FONT size=3><BR></FONT><FONT face=sans-serif size=2><BR>Is
there a tool to scan the complete hobbit bbhost hierarchy and delete all data
which are not longer needed?</FONT><FONT size=3><BR></FONT><FONT
face=sans-serif size=2><BR>Thank you</FONT><FONT size=3><BR></FONT><FONT
face=sans-serif size=2><BR>Thorsten Erdmann</FONT><FONT face=sans-serif
color=#808080 size=2><BR><BR>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. <BR></FONT><BR><FONT
face=sans-serif><FONT face="sans-serif, Arial, Helvetica" color=#808080
size=-1><BR>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.
<BR><BR></BLOCKQUOTE></FONT></FONT></BODY></HTML>