<div>Hi Henrik/Ralph,</div>
<div> </div>
<div>On my system running 4.2 with all in one patch...</div>
<div> </div>
<div>./server/bin/bb <a href="http://10.1.50.4">10.1.50.4</a> ghostlist</div>
<div>bar|<a href="http://10.1.50.4">10.1.50.4</a>|1211944491<br>ho|<a href="http://10.1.50.4">10.1.50.4</a>|1211944491<br>hum|<a href="http://10.1.50.4">10.1.50.4</a>|1211944491<br><a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|<a href="http://10.1.50.4">10.1.50.4</a>|1211944491</div>

<div> </div>
<div>So all the above is good....</div>
<div> </div>
<div>Just to clarify, hosts bar, ho, hum and zulu are all sending a message to hobbitd every five minutes. Only one test is being sent, this is a test titled alerts. There is no cpu, memory or any other test being sent.</div>

<div> </div>
<div>And just to confirm, <br></div>
<div>grep zulu ./server/etc/bb-hosts<br></div>
<div>returns nothing...</div>
<div> </div>
<div>I then add the following line to bb-hosts</div>
<div> </div>
<div><a href="http://0.0.0.0">0.0.0.0</a> <a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a> </div>
<div> </div>
<div>grep zulu ./server/etc/bb-hosts now returns<br><a href="http://0.0.0.0">0.0.0.0</a> <a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a> </div>
<div> </div>
<div>I now wait >10 minutes (only because I am trying to multi-task other work)... The host appears on the bb.html page and I can see a yellow dot for the test that is being sent every five minutes to trigger it as a ghost... I can click on the dot and see the message, including an rrd graph of the data received. So far so good...</div>

<div> </div>
<div>I now run...</div>
<div> </div>
<div>./server/bin/bb <a href="http://10.1.50.4">10.1.50.4</a> hobbitdboard | grep zulu<br><a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|trends|green||0|0|0|0|0||0|<br><a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|info|green||0|0|0|0|0||0|<br>
<a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|conn|green|OrdAstLe|1211945995|1211946296|1211948096|0|0|<a href="http://10.1.50.4">10.1.50.4</a>|-1|green <!-- [flags:OrdAstLe] --> Wed May 28 11:44:55 2008 conn ok<br>
<a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|alerts|yellow||1211945994|1211946295|1211948095|0|0|<a href="http://10.1.50.4">10.1.50.4</a>|82688|yellow Wed May 28 11:44:55 WST 2008</div>
<div> </div>
<div>So from the above, I would assume that it would now no longer be listed as a ghost...</div>
<div> </div>
<div>Just to be sure, I will wait another >15 minutes....</div>
<div>And then...</div>
<div> </div>
<div>./server/bin/bb <a href="http://10.1.50.4">10.1.50.4</a> ghostlist<br>bar|<a href="http://10.1.50.4">10.1.50.4</a>|1211946596<br>ho|<a href="http://10.1.50.4">10.1.50.4</a>|1211946596<br>hum|<a href="http://10.1.50.4">10.1.50.4</a>|1211946596<br>
<a href="http://zulu.XXXX.com.au">zulu.XXXX.com.au</a>|<a href="http://10.1.50.4">10.1.50.4</a>|1211945699<br><br>It is still there...</div>
<div> </div>
<div>I give it another 10 minutes and then I restart hobbit</div>
<div> </div>
<div>su - hobbit -c "/opt/hobbit/server/hobbit.sh restart"</div>
<div> </div>
<div>wait 10 minutes...</div>
<div> </div>
<div>And re-run </div>
<div> </div>
<div>./server/bin/bb <a href="http://10.1.50.4">10.1.50.4</a> ghostlist<br>bar|<a href="http://10.1.50.4">10.1.50.4</a>|1211947632<br>ho|<a href="http://10.1.50.4">10.1.50.4</a>|1211947632<br>hum|<a href="http://10.1.50.4">10.1.50.4</a>|1211947632<br>
</div>
<div>zulu has gone...</div>
<div> </div>
<div>This email is long enough, but if I now reverse the process and remove zulu from the bb-hosts file, zulu will never become a ghost again until after the next restart, even though hobbitdboard no longer shows it in its list.</div>

<div> </div>
<div>Can I assume this is a bug/feature?</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Phil</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">2008/5/28 Ralph Mitchell <<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">On Mon, May 26, 2008 at 7:30 AM, Henrik Stoerner <<a href="mailto:henrik@hswn.dk" target="_blank">henrik@hswn.dk</a>> wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>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><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></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><font color="#888888"><br>Ralph Mitchell<br></font></blockquote></div><br><br clear="all"><br>-- <br>Tel: 0400 466 952<br>Fax: 0433 123 226<br>email: philwild AT <a href="http://gmail.com">gmail.com</a>