On Mon, May 26, 2008 at 7:30 AM, Henrik Stoerner <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, May 23, 2008 at 10:06:59PM +0800, Phil Wild wrote:<br>
> I am trying to use the output received from hobbitd when issuing the bb<br>
> ghostlist command. The command reports correctly, but after modifying the<br>
> bb-hosts file, ghostlist continues to report ghosts. I need to do a full<br>
> restart of hobbit to get hobbitd reporting correctly.<br>
<br>
</div>hobbitd reloads the bb-hosts file every 10 minutes, or if you send a HUP<br>
signal to the hobbitd process. Hosts will remain on the ghostlist until<br>
no reports have been received with ghost hostname for 10 minutes.<br>
<br>
So if you have a ghost reporting at 12:00, and you modify the bb-hosts<br>
file at 12:01, then the host reports again at 12:05, the bb-hosts file<br>
is reloaded at 12:11, and the ghost entry expires at 12:15. So it may<br>
take up to 15 minutes before the ghostlist entry disappears.<br>
<div class="Ih2E3d"><br>
> I started digging through the source tonight but I have to admit that I just<br>
> can't understand C well enough. hobbitd knows the bb-hosts file has been<br>
> updated because the host appears on the webpage, but ghostlist still reports<br>
> it incorrectly.<br>
<br>
</div>Note: the fact that the host appears on the webpage does NOT mean<br>
hobbitd knows about it. The webpage is generated by another task, and<br>
until hobbitd learns about the new hostname, it will just show up<br>
with no status columns.<br></blockquote><div><br><br></div></div>I did this just one time:<br>

<br>   server/bin/bb localhost "status server,domain,com.bogus green `date`"<br> <br><a href="http://server.domain.com/" target="_blank">server.domain.com</a>
has never have existed in my bb-hosts file.  It showed up in
the Ghost Clients web page for 5 minutes.  It also showed up in the ghostlist generated via this command:<br><br>   server/bin/bb localhost ghostlist<br><br>Several days later, the above command was still showing this:<br>
<br>      <a href="http://server.domain.com/" target="_blank">server.domain.com</a>|<a href="http://127.0.0.1/" target="_blank">127.0.0.1</a>|1211218983<br>
<br>This was with the Jan 25 2008 4.3.0 snapshot.<br><br>Ralph Mitchell<br>